kz.gamma.asn1.cmp
Class Challenge

java.lang.Object
  extended by kz.gamma.asn1.ASN1Encodable
      extended by kz.gamma.asn1.cmp.Challenge
All Implemented Interfaces:
kz.gamma.asn1.DEREncodable

public class Challenge
extends kz.gamma.asn1.ASN1Encodable


Field Summary
private  kz.gamma.asn1.ASN1OctetString challenge
           
private  kz.gamma.asn1.x509.AlgorithmIdentifier owf
           
private  kz.gamma.asn1.ASN1OctetString witness
           
 
Fields inherited from class kz.gamma.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
private Challenge(kz.gamma.asn1.ASN1Sequence seq)
           
 
Method Summary
private  void addOptional(kz.gamma.asn1.ASN1EncodableVector v, kz.gamma.asn1.ASN1Encodable obj)
           
static Challenge getInstance(java.lang.Object o)
           
 kz.gamma.asn1.x509.AlgorithmIdentifier getOwf()
           
 kz.gamma.asn1.DERObject toASN1Object()
           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).
 
Methods inherited from class kz.gamma.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owf

private kz.gamma.asn1.x509.AlgorithmIdentifier owf

witness

private kz.gamma.asn1.ASN1OctetString witness

challenge

private kz.gamma.asn1.ASN1OctetString challenge
Constructor Detail

Challenge

private Challenge(kz.gamma.asn1.ASN1Sequence seq)
Method Detail

getInstance

public static Challenge getInstance(java.lang.Object o)

getOwf

public kz.gamma.asn1.x509.AlgorithmIdentifier getOwf()

toASN1Object

public kz.gamma.asn1.DERObject toASN1Object()
 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)
                 --   }
      }
 

Specified by:
toASN1Object in class kz.gamma.asn1.ASN1Encodable
Returns:
a basic ASN.1 object representation.

addOptional

private void addOptional(kz.gamma.asn1.ASN1EncodableVector v,
                         kz.gamma.asn1.ASN1Encodable obj)


Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.