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

public Class PublicKeyAndChallenge

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1IA5String, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DERIA5String, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo

This is designed to parse the PublicKeyAndChallenge created by the KEYGEN tag included by Mozilla based browsers.
 PublicKeyAndChallenge ::= SEQUENCE {
   spki SubjectPublicKeyInfo,
   challenge IA5STRING
 }

 

Field Summary

Modifier and TypeField and Description
private ASN1IA5String
private ASN1Sequence
private SubjectPublicKeyInfo

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public DERIA5String
getChallenge()

Deprecated Use getChallengeIA5() instead.
public ASN1IA5String
public static PublicKeyAndChallenge
public SubjectPublicKeyInfo
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

challengeback to summary
private ASN1IA5String challenge
pkacSeqback to summary
private ASN1Sequence pkacSeq
spkiback to summary
private SubjectPublicKeyInfo spki

Constructor Detail

PublicKeyAndChallengeback to summary
private PublicKeyAndChallenge(ASN1Sequence seq)

Method Detail

getChallengeback to summary
public DERIA5String getChallenge()

Deprecated

Use getChallengeIA5() instead.

getChallengeIA5back to summary
public ASN1IA5String getChallengeIA5()
getInstanceback to summary
public static PublicKeyAndChallenge getInstance(Object obj)
getSubjectPublicKeyInfoback to summary
public SubjectPublicKeyInfo getSubjectPublicKeyInfo()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.