Top Fields Constructors Methods
org.bouncycastle.asn1.cmp

public Class Challenge

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Field Summary

Modifier and TypeField and Description
private ASN1OctetString
private AlgorithmIdentifier
private ASN1OctetString

Constructor Summary

AccessConstructor and Description
private
public
Challenge(byte[] witness, byte[] challenge)

public
Challenge(AlgorithmIdentifier owf, byte[] witness, byte[] challenge)

Method Summary

Modifier and TypeMethod and Description
private void
public byte[]
public static Challenge
public AlgorithmIdentifier
public byte[]
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Challenge ::= SEQUENCE {
                owf                 AlgorithmIdentifier  OPTIONAL,

                -- MUST be present in the first Challenge; MAY be omitted in
                -- any subsequent Challenge in POPODecKeyChallContent (if
                -- omitted, then the owf used in the immediately preceding
                -- Challenge is to be used).
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

challengeback to summary
private ASN1OctetString challenge
owfback to summary
private AlgorithmIdentifier owf
witnessback to summary
private ASN1OctetString witness

Constructor Detail

Challengeback to summary
private Challenge(ASN1Sequence seq)
Challengeback to summary
public Challenge(byte[] witness, byte[] challenge)
Challengeback to summary
public Challenge(AlgorithmIdentifier owf, byte[] witness, byte[] challenge)

Method Detail

addOptionalback to summary
private void addOptional(ASN1EncodableVector v, ASN1Encodable obj)
getChallengeback to summary
public byte[] getChallenge()
getInstanceback to summary
public static Challenge getInstance(Object o)
getOwfback to summary
public AlgorithmIdentifier getOwf()
getWitnessback to summary
public byte[] getWitness()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Challenge ::= SEQUENCE {
                owf                 AlgorithmIdentifier  OPTIONAL,

                -- MUST be present in the first Challenge; MAY be omitted in
                -- any subsequent Challenge in POPODecKeyChallContent (if
                -- omitted, then the owf used in the immediately preceding
                -- Challenge is to be used).

                witness             OCTET STRING,
                -- the result of applying the one-way function (owf) to a
                -- randomly-generated INTEGER, A.  [Note that a different
                -- INTEGER MUST be used for each Challenge.]
                challenge           OCTET STRING
                -- the encryption (under the public key for which the cert.
                -- request is being made) of Rand, where Rand is specified as
                --   Rand ::= SEQUENCE {
                --      int      INTEGER,
                --       - the randomly-generated INTEGER A (above)
                --      sender   GeneralName
                --       - the sender's name (as included in PKIHeader)
                --   }
     }
Returns:ASN1Primitive

a basic ASN.1 object representation.