FileDocCategorySizeDatePackage
PublicKeyAndChallenge.javaAPI DocAndroid 1.5 API1581Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.mozilla

PublicKeyAndChallenge

public class PublicKeyAndChallenge extends org.bouncycastle.asn1.ASN1Encodable
This is designed to parse the PublicKeyAndChallenge created by the KEYGEN tag included by Mozilla based browsers.
PublicKeyAndChallenge ::= SEQUENCE {
spki SubjectPublicKeyInfo,
challenge IA5STRING
}

Fields Summary
private org.bouncycastle.asn1.ASN1Sequence
pkacSeq
private org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
spki
private org.bouncycastle.asn1.DERIA5String
challenge
Constructors Summary
public PublicKeyAndChallenge(org.bouncycastle.asn1.ASN1Sequence seq)

        pkacSeq = seq;
        spki = SubjectPublicKeyInfo.getInstance(seq.getObjectAt(0));
        challenge = DERIA5String.getInstance(seq.getObjectAt(1));
    
Methods Summary
public org.bouncycastle.asn1.DERIA5StringgetChallenge()

        return challenge;
    
public static org.bouncycastle.asn1.mozilla.PublicKeyAndChallengegetInstance(java.lang.Object obj)

        if (obj instanceof PublicKeyAndChallenge)
        {
            return (PublicKeyAndChallenge)obj;
        }
        else if (obj instanceof ASN1Sequence)
        {
            return new PublicKeyAndChallenge((ASN1Sequence)obj);
        }

        throw new IllegalArgumentException("unkown object in factory");
    
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfogetSubjectPublicKeyInfo()

        return spki;
    
public org.bouncycastle.asn1.DERObjecttoASN1Object()

        return pkacSeq;