kz.gamma.asn1.cmp
Class PKIHeader
java.lang.Object
kz.gamma.asn1.ASN1Encodable
kz.gamma.asn1.cmp.PKIHeader
- All Implemented Interfaces:
- kz.gamma.asn1.DEREncodable
public class PKIHeader
- extends kz.gamma.asn1.ASN1Encodable
| Fields inherited from class kz.gamma.asn1.ASN1Encodable |
BER, DER |
|
Constructor Summary |
private |
PKIHeader(kz.gamma.asn1.ASN1Sequence seq)
|
|
Method Summary |
private void |
addOptional(kz.gamma.asn1.ASN1EncodableVector v,
int tagNo,
kz.gamma.asn1.ASN1Encodable obj)
|
static PKIHeader |
getInstance(java.lang.Object o)
|
kz.gamma.asn1.DERInteger |
getPvno()
|
kz.gamma.asn1.x509.GeneralName |
getRecipient()
|
kz.gamma.asn1.x509.GeneralName |
getSender()
|
kz.gamma.asn1.DERObject |
toASN1Object()
PKIHeader ::= SEQUENCE {
pvno INTEGER { cmp1999(1), cmp2000(2) },
sender GeneralName,
-- identifies the sender
recipient GeneralName,
-- identifies the intended recipient
messageTime [0] GeneralizedTime OPTIONAL,
-- time of production of this message (used when sender
-- believes that the transport will be "suitable"; i.e.,
-- that the time will still be meaningful upon receipt)
protectionAlg [1] AlgorithmIdentifier OPTIONAL,
-- algorithm used for calculation of protection bits
senderKID [2] KeyIdentifier OPTIONAL,
recipKID [3] KeyIdentifier OPTIONAL,
-- to identify specific keys used for protection
transactionID [4] OCTET STRING OPTIONAL,
-- identifies the transaction; i.e., this will be the same in
-- corresponding request, response, certConf, and PKIConf
-- messages
senderNonce [5] OCTET STRING OPTIONAL,
recipNonce [6] OCTET STRING OPTIONAL,
-- nonces used to provide replay protection, senderNonce
-- is inserted by the creator of this message; recipNonce
-- is a nonce previously inserted in a related message by
-- the intended recipient of this message
freeText [7] PKIFreeText OPTIONAL,
-- this may be used to indicate context-specific instructions
-- (this field is intended for human consumption)
generalInfo [8] SEQUENCE SIZE (1..MAX) OF
InfoTypeAndValue OPTIONAL
-- this may be used to convey context-specific information
-- (this field not primarily intended for human consumption)
}
|
| 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 |
pvno
private kz.gamma.asn1.DERInteger pvno
sender
private kz.gamma.asn1.x509.GeneralName sender
recipient
private kz.gamma.asn1.x509.GeneralName recipient
messageTime
private kz.gamma.asn1.DERGeneralizedTime messageTime
protectionAlg
private kz.gamma.asn1.x509.AlgorithmIdentifier protectionAlg
senderKID
private kz.gamma.asn1.ASN1OctetString senderKID
recipKID
private kz.gamma.asn1.ASN1OctetString recipKID
transactionID
private kz.gamma.asn1.ASN1OctetString transactionID
senderNonce
private kz.gamma.asn1.ASN1OctetString senderNonce
recipNonce
private kz.gamma.asn1.ASN1OctetString recipNonce
freeText
private PKIFreeText freeText
generalInfo
private kz.gamma.asn1.ASN1Sequence generalInfo
PKIHeader
private PKIHeader(kz.gamma.asn1.ASN1Sequence seq)
getInstance
public static PKIHeader getInstance(java.lang.Object o)
getPvno
public kz.gamma.asn1.DERInteger getPvno()
getSender
public kz.gamma.asn1.x509.GeneralName getSender()
getRecipient
public kz.gamma.asn1.x509.GeneralName getRecipient()
toASN1Object
public kz.gamma.asn1.DERObject toASN1Object()
PKIHeader ::= SEQUENCE {
pvno INTEGER { cmp1999(1), cmp2000(2) },
sender GeneralName,
-- identifies the sender
recipient GeneralName,
-- identifies the intended recipient
messageTime [0] GeneralizedTime OPTIONAL,
-- time of production of this message (used when sender
-- believes that the transport will be "suitable"; i.e.,
-- that the time will still be meaningful upon receipt)
protectionAlg [1] AlgorithmIdentifier OPTIONAL,
-- algorithm used for calculation of protection bits
senderKID [2] KeyIdentifier OPTIONAL,
recipKID [3] KeyIdentifier OPTIONAL,
-- to identify specific keys used for protection
transactionID [4] OCTET STRING OPTIONAL,
-- identifies the transaction; i.e., this will be the same in
-- corresponding request, response, certConf, and PKIConf
-- messages
senderNonce [5] OCTET STRING OPTIONAL,
recipNonce [6] OCTET STRING OPTIONAL,
-- nonces used to provide replay protection, senderNonce
-- is inserted by the creator of this message; recipNonce
-- is a nonce previously inserted in a related message by
-- the intended recipient of this message
freeText [7] PKIFreeText OPTIONAL,
-- this may be used to indicate context-specific instructions
-- (this field is intended for human consumption)
generalInfo [8] SEQUENCE SIZE (1..MAX) OF
InfoTypeAndValue OPTIONAL
-- this may be used to convey context-specific information
-- (this field not primarily intended for human consumption)
}
- 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,
int tagNo,
kz.gamma.asn1.ASN1Encodable obj)
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.