| Modifier and Type | Field and Description |
|---|---|
| private PKIFreeText | |
| private ASN1Sequence | |
| private ASN1GeneralizedTime | |
| private AlgorithmIdentifier | |
| private ASN1Integer | |
| private GeneralName | |
| private ASN1OctetString | |
| private ASN1OctetString | |
| private GeneralName | |
| private ASN1OctetString | |
| private ASN1OctetString | |
| private ASN1OctetString |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public PKIHeader | Returns: a basic ASN.1 object representation.
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)
}
|
| private static ASN1Sequence | |
| private static ASN1Sequence | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder | |
| public PKIHeaderBuilder |
| freeText | back to summary |
|---|---|
| private PKIFreeText freeText | |
| generalInfo | back to summary |
|---|---|
| private ASN1Sequence generalInfo | |
| messageTime | back to summary |
|---|---|
| private ASN1GeneralizedTime messageTime | |
| protectionAlg | back to summary |
|---|---|
| private AlgorithmIdentifier protectionAlg | |
| pvno | back to summary |
|---|---|
| private ASN1Integer pvno | |
| recipient | back to summary |
|---|---|
| private GeneralName recipient | |
| recipKID | back to summary |
|---|---|
| private ASN1OctetString recipKID | |
| recipNonce | back to summary |
|---|---|
| private ASN1OctetString recipNonce | |
| sender | back to summary |
|---|---|
| private GeneralName sender | |
| senderKID | back to summary |
|---|---|
| private ASN1OctetString senderKID | |
| senderNonce | back to summary |
|---|---|
| private ASN1OctetString senderNonce | |
| transactionID | back to summary |
|---|---|
| private ASN1OctetString transactionID | |
| PKIHeaderBuilder | back to summary |
|---|---|
| public PKIHeaderBuilder(int pvno, GeneralName sender, GeneralName recipient) | |
| PKIHeaderBuilder | back to summary |
|---|---|
| private PKIHeaderBuilder(ASN1Integer pvno, GeneralName sender, GeneralName recipient) | |
| addOptional | back to summary |
|---|---|
| private void addOptional(ASN1EncodableVector v, int tagNo, ASN1Encodable obj) | |
| build | back to summary |
|---|---|
public PKIHeader build()
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)
}
| |
| makeGeneralInfoSeq | back to summary |
|---|---|
| private static ASN1Sequence makeGeneralInfoSeq(InfoTypeAndValue generalInfo) | |
| makeGeneralInfoSeq | back to summary |
|---|---|
| private static ASN1Sequence makeGeneralInfoSeq(InfoTypeAndValue[] generalInfos) | |
| setFreeText | back to summary |
|---|---|
| public PKIHeaderBuilder setFreeText(PKIFreeText text) | |
| setGeneralInfo | back to summary |
|---|---|
| public PKIHeaderBuilder setGeneralInfo(InfoTypeAndValue genInfo) | |
| setGeneralInfo | back to summary |
|---|---|
| public PKIHeaderBuilder setGeneralInfo(InfoTypeAndValue[] genInfos) | |
| setGeneralInfo | back to summary |
|---|---|
| public PKIHeaderBuilder setGeneralInfo(ASN1Sequence seqOfInfoTypeAndValue) | |
| setMessageTime | back to summary |
|---|---|
| public PKIHeaderBuilder setMessageTime(ASN1GeneralizedTime time) | |
| setProtectionAlg | back to summary |
|---|---|
| public PKIHeaderBuilder setProtectionAlg(AlgorithmIdentifier aid) | |
| setRecipKID | back to summary |
|---|---|
| public PKIHeaderBuilder setRecipKID(byte[] kid) | |
| setRecipKID | back to summary |
|---|---|
| public PKIHeaderBuilder setRecipKID(DEROctetString kid) | |
| setRecipNonce | back to summary |
|---|---|
| public PKIHeaderBuilder setRecipNonce(byte[] nonce) | |
| setRecipNonce | back to summary |
|---|---|
| public PKIHeaderBuilder setRecipNonce(ASN1OctetString nonce) | |
| setSenderKID | back to summary |
|---|---|
| public PKIHeaderBuilder setSenderKID(byte[] kid) | |
| setSenderKID | back to summary |
|---|---|
| public PKIHeaderBuilder setSenderKID(ASN1OctetString kid) | |
| setSenderNonce | back to summary |
|---|---|
| public PKIHeaderBuilder setSenderNonce(byte[] nonce) | |
| setSenderNonce | back to summary |
|---|---|
| public PKIHeaderBuilder setSenderNonce(ASN1OctetString nonce) | |
| setTransactionID | back to summary |
|---|---|
| public PKIHeaderBuilder setTransactionID(byte[] tid) | |
| setTransactionID | back to summary |
|---|---|
| public PKIHeaderBuilder setTransactionID(ASN1OctetString tid) | |