public class SignedPublicKeyAndChallenge
extends org.bouncycastle.asn1.ASN1Object
PublicKeyAndChallenge ::= SEQUENCE {
spki SubjectPublicKeyInfo,
challenge IA5STRING
}
SignedPublicKeyAndChallenge ::= SEQUENCE {
publicKeyAndChallenge PublicKeyAndChallenge,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING
}
| Constructor and Description |
|---|
SignedPublicKeyAndChallenge(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
java.security.PublicKey |
getPublicKey(java.lang.String provider) |
org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge |
getPublicKeyAndChallenge() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
boolean |
verify() |
boolean |
verify(java.lang.String provider) |
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive in interface org.bouncycastle.asn1.ASN1EncodabletoASN1Primitive in class org.bouncycastle.asn1.ASN1Objectpublic org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge getPublicKeyAndChallenge()
public boolean verify()
throws java.security.NoSuchAlgorithmException,
java.security.SignatureException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException
java.security.NoSuchAlgorithmExceptionjava.security.SignatureExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionpublic boolean verify(java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.SignatureException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException
java.security.NoSuchAlgorithmExceptionjava.security.SignatureExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyExceptionpublic java.security.PublicKey getPublicKey(java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.InvalidKeyException
java.security.NoSuchAlgorithmExceptionjava.security.NoSuchProviderExceptionjava.security.InvalidKeyException