org.bouncycastle.mozilla
public class SignedPublicKeyAndChallenge extends ASN1Encodable
PublicKeyAndChallenge ::= SEQUENCE { spki SubjectPublicKeyInfo, challenge IA5STRING } SignedPublicKeyAndChallenge ::= SEQUENCE { publicKeyAndChallenge PublicKeyAndChallenge, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING }
BER, DER
Constructor and Description |
---|
SignedPublicKeyAndChallenge(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
java.security.PublicKey |
getPublicKey(java.lang.String provider) |
PublicKeyAndChallenge |
getPublicKeyAndChallenge() |
DERObject |
toASN1Object() |
boolean |
verify() |
boolean |
verify(java.lang.String provider) |
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
public DERObject toASN1Object()
toASN1Object
in class ASN1Encodable
public PublicKeyAndChallenge getPublicKeyAndChallenge()
public boolean verify() throws java.security.NoSuchAlgorithmException, java.security.SignatureException, java.security.NoSuchProviderException, java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.SignatureException
java.security.NoSuchProviderException
java.security.InvalidKeyException
public boolean verify(java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.SignatureException, java.security.NoSuchProviderException, java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.SignatureException
java.security.NoSuchProviderException
java.security.InvalidKeyException
public java.security.PublicKey getPublicKey(java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
java.security.InvalidKeyException