Top Description Inners Fields Constructors Methods
org.bouncycastle.asn1.cmp

public Class Challenge

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

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)
         --   }
     }
     

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Challenge.Rand

Rand is the inner type

Field Summary

Modifier and TypeField and Description
private final ASN1OctetString
private final AlgorithmIdentifier
private final 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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

challengeback to summary
private final ASN1OctetString challenge
owfback to summary
private final AlgorithmIdentifier owf
witnessback to summary
private final 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.

org.bouncycastle.asn1.cmp back to summary

public Class Challenge.Rand

extends ASN1Object
Class Inheritance

Rand is the inner type

Field Summary

Modifier and TypeField and Description
private final ASN1Integer
private final GeneralName

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public static Challenge.Rand
public ASN1Integer
public GeneralName
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

_intback to summary
private final ASN1Integer _int
senderback to summary
private final GeneralName sender

Constructor Detail

Randback to summary
public Rand(ASN1Integer _int, GeneralName sender)
Randback to summary
public Rand(ASN1Sequence seq)

Method Detail

getInstanceback to summary
public static Challenge.Rand getInstance(Object o)
getIntback to summary
public ASN1Integer getInt()
getSenderback to summary
public GeneralName getSender()
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.