Signature.InitVerify Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
InitVerify(Certificate) |
Initializes this object for verification, using the public key from the given certificate. |
InitVerify(IPublicKey) |
Initializes this object for verification. |
InitVerify(Certificate)
Initializes this object for verification, using the public key from the given certificate.
[Android.Runtime.Register("initVerify", "(Ljava/security/cert/Certificate;)V", "")]
public void InitVerify (Java.Security.Cert.Certificate? certificate);
[<Android.Runtime.Register("initVerify", "(Ljava/security/cert/Certificate;)V", "")>]
member this.InitVerify : Java.Security.Cert.Certificate -> unit
Parameters
- certificate
- Certificate
the certificate of the identity whose signature is going to be verified.
- Attributes
Exceptions
if the publicKey in the certificate is not valid or not to be used for signing.
Remarks
Initializes this object for verification, using the public key from the given certificate.
If the certificate is of type X.509 and has a key usage extension field marked as critical, and the value of the key usage extension field implies that the public key in the certificate and its corresponding private key are not supposed to be used for digital signatures, an InvalidKeyException
is thrown.
Added in 1.3.
Java documentation for java.security.Signature.initVerify(java.security.cert.Certificate)
.
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
InitVerify(IPublicKey)
Initializes this object for verification.
[Android.Runtime.Register("initVerify", "(Ljava/security/PublicKey;)V", "")]
public void InitVerify (Java.Security.IPublicKey? publicKey);
[<Android.Runtime.Register("initVerify", "(Ljava/security/PublicKey;)V", "")>]
member this.InitVerify : Java.Security.IPublicKey -> unit
Parameters
- publicKey
- IPublicKey
the public key of the identity whose signature is going to be verified.
- Attributes
Exceptions
if publicKey
is not valid.
Remarks
Initializes this object for verification. If this method is called again with a different argument, it negates the effect of this call.
Java documentation for java.security.Signature.initVerify(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.