Package org.bouncycastle.mozilla
Class SignedPublicKeyAndChallenge
java.lang.Object
org.bouncycastle.mozilla.SignedPublicKeyAndChallenge
- All Implemented Interfaces:
org.bouncycastle.util.Encodable
- Direct Known Subclasses:
JcaSignedPublicKeyAndChallenge
This is designed to parse the SignedPublicKeyAndChallenge created by the
KEYGEN tag included by Mozilla based browsers.
PublicKeyAndChallenge ::= SEQUENCE {
spki SubjectPublicKeyInfo,
challenge IA5STRING
}
SignedPublicKeyAndChallenge ::= SEQUENCE {
publicKeyAndChallenge PublicKeyAndChallenge,
signatureAlgorithm AlgorithmIdentifier,
signature BIT STRING
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge -
Constructor Summary
ConstructorsModifierConstructorDescriptionSignedPublicKeyAndChallenge(byte[] bytes) protectedSignedPublicKeyAndChallenge(org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge struct) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]org.bouncycastle.asn1.mozilla.PublicKeyAndChallengeorg.bouncycastle.asn1.x509.SubjectPublicKeyInfobooleanisSignatureValid(ContentVerifierProvider verifierProvider) org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallengeReturn the underlying ASN.1 structure for this challenge.
-
Field Details
-
spkacSeq
protected final org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge spkacSeq
-
-
Constructor Details
-
SignedPublicKeyAndChallenge
public SignedPublicKeyAndChallenge(byte[] bytes) -
SignedPublicKeyAndChallenge
protected SignedPublicKeyAndChallenge(org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge struct)
-
-
Method Details
-
toASN1Structure
public org.bouncycastle.asn1.mozilla.SignedPublicKeyAndChallenge toASN1Structure()Return the underlying ASN.1 structure for this challenge.- Returns:
- a SignedPublicKeyAndChallenge object.
-
getPublicKeyAndChallenge
public org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge getPublicKeyAndChallenge() -
isSignatureValid
public boolean isSignatureValid(ContentVerifierProvider verifierProvider) throws OperatorCreationException, IOException - Throws:
OperatorCreationExceptionIOException
-
getSubjectPublicKeyInfo
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo() -
getChallenge
-
getEncoded
- Specified by:
getEncodedin interfaceorg.bouncycastle.util.Encodable- Throws:
IOException
-