public class SignedPublicKeyAndChallenge
extends java.lang.Object
implements org.bouncycastle.util.Encodable
PublicKeyAndChallenge ::= SEQUENCE { spki SubjectPublicKeyInfo, challenge IA5STRING } SignedPublicKeyAndChallenge ::= SEQUENCE { publicKeyAndChallenge PublicKeyAndChallenge, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING }
Modifier and Type | Field and Description |
---|---|
protected org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge |
spkacSeq |
Modifier | Constructor and Description |
---|---|
|
SignedPublicKeyAndChallenge(byte[] bytes) |
protected |
SignedPublicKeyAndChallenge(org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge struct) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChallenge() |
byte[] |
getEncoded() |
org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge |
getPublicKeyAndChallenge() |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
getSubjectPublicKeyInfo() |
boolean |
isSignatureValid(ContentVerifierProvider verifierProvider) |
org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge |
toASN1Structure()
Return the underlying ASN.1 structure for this challenge.
|
protected final org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge spkacSeq
public SignedPublicKeyAndChallenge(byte[] bytes)
protected SignedPublicKeyAndChallenge(org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge struct)
public org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge toASN1Structure()
public org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge getPublicKeyAndChallenge()
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws OperatorCreationException, java.io.IOException
OperatorCreationException
java.io.IOException
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo()
public java.lang.String getChallenge()
public byte[] getEncoded() throws java.io.IOException
getEncoded
in interface org.bouncycastle.util.Encodable
java.io.IOException