Package org.bouncycastle.mozilla.jcajce
Class JcaSignedPublicKeyAndChallenge
java.lang.Object
org.bouncycastle.mozilla.SignedPublicKeyAndChallenge
org.bouncycastle.mozilla.jcajce.JcaSignedPublicKeyAndChallenge
- All Implemented Interfaces:
org.bouncycastle.util.Encodable
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
Fields inherited from class org.bouncycastle.mozilla.SignedPublicKeyAndChallenge
spkacSeq
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetProvider
(String providerName) setProvider
(Provider provider) Methods inherited from class org.bouncycastle.mozilla.SignedPublicKeyAndChallenge
getChallenge, getEncoded, getPublicKey, getPublicKeyAndChallenge, getSubjectPublicKeyInfo, isSignatureValid, toASN1Primitive, toASN1Structure, verify, verify
-
Constructor Details
-
JcaSignedPublicKeyAndChallenge
public JcaSignedPublicKeyAndChallenge(byte[] bytes)
-
-
Method Details
-
setProvider
-
setProvider
-
getPublicKey
public PublicKey getPublicKey() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
-