다음을 통해 공유


Certificate.Verify Method

Definition

Overloads

Verify(IPublicKey)

Verifies that this certificate was signed using the private key that corresponds to the specified public key.

Verify(IPublicKey, Provider)

Verifies that this certificate was signed using the private key that corresponds to the specified public key.

Verify(IPublicKey, String)

Verifies that this certificate was signed using the private key that corresponds to the specified public key.

Verify(IPublicKey)

Verifies that this certificate was signed using the private key that corresponds to the specified public key.

[Android.Runtime.Register("verify", "(Ljava/security/PublicKey;)V", "GetVerify_Ljava_security_PublicKey_Handler")]
public abstract void Verify (Java.Security.IPublicKey? key);
[<Android.Runtime.Register("verify", "(Ljava/security/PublicKey;)V", "GetVerify_Ljava_security_PublicKey_Handler")>]
abstract member Verify : Java.Security.IPublicKey -> unit

Parameters

key
IPublicKey

the PublicKey used to carry out the verification.

Attributes

Exceptions

if encoding errors are detected.

if an unsupported algorithm is detected.

if an invalid key is detected.

if there is no default provider.

if signature errors are detected.

Remarks

Verifies that this certificate was signed using the private key that corresponds to the specified public key.

Java documentation for java.security.cert.Certificate.verify(java.security.PublicKey).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Verify(IPublicKey, Provider)

Verifies that this certificate was signed using the private key that corresponds to the specified public key.

[Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/security/Provider;)V", "GetVerify_Ljava_security_PublicKey_Ljava_security_Provider_Handler", ApiSince=26)]
public virtual void Verify (Java.Security.IPublicKey? key, Java.Security.Provider? sigProvider);
[<Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/security/Provider;)V", "GetVerify_Ljava_security_PublicKey_Ljava_security_Provider_Handler", ApiSince=26)>]
abstract member Verify : Java.Security.IPublicKey * Java.Security.Provider -> unit
override this.Verify : Java.Security.IPublicKey * Java.Security.Provider -> unit

Parameters

key
IPublicKey

the PublicKey used to carry out the verification.

sigProvider
Provider

the signature provider.

Attributes

Remarks

Verifies that this certificate was signed using the private key that corresponds to the specified public key. This method uses the signature verification engine supplied by the specified provider. Note that the specified Provider object does not have to be registered in the provider list.

This method was added to version 1.8 of the Java Platform Standard Edition. In order to maintain backwards compatibility with existing service providers, this method cannot be abstract and by default throws an UnsupportedOperationException.

Added in 1.8.

Java documentation for java.security.cert.Certificate.verify(java.security.PublicKey, java.security.Provider).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Verify(IPublicKey, String)

Verifies that this certificate was signed using the private key that corresponds to the specified public key.

[Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/lang/String;)V", "GetVerify_Ljava_security_PublicKey_Ljava_lang_String_Handler")]
public abstract void Verify (Java.Security.IPublicKey? key, string? sigProvider);
[<Android.Runtime.Register("verify", "(Ljava/security/PublicKey;Ljava/lang/String;)V", "GetVerify_Ljava_security_PublicKey_Ljava_lang_String_Handler")>]
abstract member Verify : Java.Security.IPublicKey * string -> unit

Parameters

key
IPublicKey

the PublicKey used to carry out the verification.

sigProvider
String

the name of the signature provider.

Attributes

Exceptions

if encoding errors are detected.

if an unsupported algorithm is detected.

if an invalid key is detected.

if the specified provider does not exists.

if signature errors are detected.

Remarks

Verifies that this certificate was signed using the private key that corresponds to the specified public key. This method uses the signature verification engine supplied by the specified provider.

Java documentation for java.security.cert.Certificate.verify(java.security.PublicKey, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to