org.bouncycastle.mozilla

Class SignedPublicKeyAndChallenge

public class SignedPublicKeyAndChallenge extends ASN1Encodable

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
  }
  
Constructor Summary
SignedPublicKeyAndChallenge(byte[] bytes)
Method Summary
PublicKeygetPublicKey(String provider)
PublicKeyAndChallengegetPublicKeyAndChallenge()
DERObjecttoASN1Object()
booleanverify(String provider)

Constructor Detail

SignedPublicKeyAndChallenge

public SignedPublicKeyAndChallenge(byte[] bytes)

Method Detail

getPublicKey

public PublicKey getPublicKey(String provider)

getPublicKeyAndChallenge

public PublicKeyAndChallenge getPublicKeyAndChallenge()

toASN1Object

public DERObject toASN1Object()

verify

public boolean verify(String provider)