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.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object
public org.bouncycastle.asn1.mozilla.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