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 |
---|---|
PublicKey |
getPublicKey(String provider) |
org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge |
getPublicKeyAndChallenge() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
boolean |
verify() |
boolean |
verify(String provider) |
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object
public org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge getPublicKeyAndChallenge()
public boolean verify() throws NoSuchAlgorithmException, SignatureException, NoSuchProviderException, InvalidKeyException
public boolean verify(String provider) throws NoSuchAlgorithmException, SignatureException, NoSuchProviderException, InvalidKeyException
public PublicKey getPublicKey(String provider) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException