public class PKIHeader extends ASN1Encodable
Modifier and Type | Field and Description |
---|---|
private PKIFreeText |
freeText |
private ASN1Sequence |
generalInfo |
private DERGeneralizedTime |
messageTime |
private AlgorithmIdentifier |
protectionAlg |
private DERInteger |
pvno |
private GeneralName |
recipient |
private ASN1OctetString |
recipKID |
private ASN1OctetString |
recipNonce |
private GeneralName |
sender |
private ASN1OctetString |
senderKID |
private ASN1OctetString |
senderNonce |
private ASN1OctetString |
transactionID |
BER, DER
Modifier | Constructor and Description |
---|---|
private |
PKIHeader(ASN1Sequence seq) |
Modifier and Type | Method and Description |
---|---|
private void |
addOptional(ASN1EncodableVector v,
int tagNo,
ASN1Encodable obj) |
static PKIHeader |
getInstance(java.lang.Object o) |
DERInteger |
getPvno() |
GeneralName |
getRecipient() |
GeneralName |
getSender() |
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)
}
|
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
private DERInteger pvno
private GeneralName sender
private GeneralName recipient
private DERGeneralizedTime messageTime
private AlgorithmIdentifier protectionAlg
private ASN1OctetString senderKID
private ASN1OctetString recipKID
private ASN1OctetString transactionID
private ASN1OctetString senderNonce
private ASN1OctetString recipNonce
private PKIFreeText freeText
private ASN1Sequence generalInfo
private PKIHeader(ASN1Sequence seq)
public static PKIHeader getInstance(java.lang.Object o)
public DERInteger getPvno()
public GeneralName getSender()
public GeneralName getRecipient()
public 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) }
toASN1Object
in class ASN1Encodable
private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj)
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.