Top Description Fields Constructors Methods
org.bouncycastle.mozilla.jcajce

public Class JcaSignedPublicKeyAndChallenge

extends SignedPublicKeyAndChallenge
Class Inheritance
Imports
java.security.InvalidKeyException, .KeyFactory, .NoSuchAlgorithmException, .NoSuchProviderException, .Provider, .PublicKey, java.security.spec.X509EncodedKeySpec, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.jcajce.util.DefaultJcaJceHelper, .JcaJceHelper, .NamedJcaJceHelper, .ProviderJcaJceHelper, org.bouncycastle.mozilla.SignedPublicKeyAndChallenge

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

Modifier and TypeField and Description
pack-priv JcaJceHelper
Inherited from org.bouncycastle.mozilla.SignedPublicKeyAndChallenge:
spkacSeq

Constructor Summary

AccessConstructor and Description
private
public

Method Summary

Modifier and TypeMethod and Description
public PublicKey
public JcaSignedPublicKeyAndChallenge
setProvider(String providerName)

public JcaSignedPublicKeyAndChallenge
Inherited from org.bouncycastle.mozilla.SignedPublicKeyAndChallenge:
getChallengegetEncodedgetPublicKeygetPublicKeyAndChallengegetSubjectPublicKeyInfoisSignatureValidtoASN1PrimitivetoASN1Structureverifyverify

Field Detail

helperback to summary
pack-priv JcaJceHelper helper

Constructor Detail

JcaSignedPublicKeyAndChallengeback to summary
private JcaSignedPublicKeyAndChallenge(SignedPublicKeyAndChallenge struct, JcaJceHelper helper)
JcaSignedPublicKeyAndChallengeback to summary
public JcaSignedPublicKeyAndChallenge(byte[] bytes)

Method Detail

getPublicKeyback to summary
public PublicKey getPublicKey() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException
setProviderback to summary
public JcaSignedPublicKeyAndChallenge setProvider(String providerName)
setProviderback to summary
public JcaSignedPublicKeyAndChallenge setProvider(Provider provider)