public class PKIHeader
extends java.lang.Object
implements org.bouncycastle.asn1.ASN1Encodable
PKIHeader ::= SEQUENCE { pvno INTEGER { ietf-version2 (1) }, sender GeneralName, -- identifies the sender recipient GeneralName, -- identifies the intended recipient messageTime [0] GeneralizedTime OPTIONAL, -- time of production of this message protectionAlg [1] AlgorithmIdentifier OPTIONAL, -- algorithm used for calculation of protection bits senderKID [2] KeyIdentifier OPTIONAL, -- (OCTET STRING) recipKID [3] KeyIdentifier OPTIONAL, -- (OCTET STRING) 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 and confirmation 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) }
Constructor and Description |
---|
PKIHeader(org.bouncycastle.asn1.ASN1Integer pvno,
org.bouncycastle.asn1.x509.GeneralName sender,
org.bouncycastle.asn1.x509.GeneralName recipient) |
PKIHeader(org.bouncycastle.asn1.ASN1Sequence seq) |
Modifier and Type | Method and Description |
---|---|
void |
addGeneralInfo(InfoTypeAndValue generalInfo) |
PKIFreeText |
getFreeText() |
InfoTypeAndValue |
getGeneralInfo(int nr) |
static PKIHeader |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj,
boolean explicit) |
static PKIHeader |
getInstance(java.lang.Object obj) |
org.bouncycastle.asn1.ASN1GeneralizedTime |
getMessageTime() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getProtectionAlg() |
org.bouncycastle.asn1.ASN1Integer |
getPvno() |
org.bouncycastle.asn1.x509.GeneralName |
getRecipient() |
org.bouncycastle.asn1.DEROctetString |
getRecipKID() |
org.bouncycastle.asn1.DEROctetString |
getRecipNonce() |
org.bouncycastle.asn1.x509.GeneralName |
getSender() |
org.bouncycastle.asn1.DEROctetString |
getSenderKID() |
org.bouncycastle.asn1.DEROctetString |
getSenderNonce() |
org.bouncycastle.asn1.DEROctetString |
getTransactionID() |
void |
setFreeText(PKIFreeText freeText) |
void |
setMessageTime(org.bouncycastle.asn1.DERGeneralizedTime messageTime) |
void |
setProtectionAlg(org.bouncycastle.asn1.x509.AlgorithmIdentifier protectionAlg) |
void |
setRecipKID(org.bouncycastle.asn1.DEROctetString recipKID) |
void |
setRecipNonce(org.bouncycastle.asn1.DEROctetString recipNonce) |
void |
setSenderKID(org.bouncycastle.asn1.DEROctetString senderKID) |
void |
setSenderNonce(org.bouncycastle.asn1.DEROctetString senderNonce) |
void |
setTransactionID(org.bouncycastle.asn1.DEROctetString transactionID) |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
java.lang.String |
toString() |
public PKIHeader(org.bouncycastle.asn1.ASN1Sequence seq)
public PKIHeader(org.bouncycastle.asn1.ASN1Integer pvno, org.bouncycastle.asn1.x509.GeneralName sender, org.bouncycastle.asn1.x509.GeneralName recipient)
public static PKIHeader getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
public static PKIHeader getInstance(java.lang.Object obj)
public org.bouncycastle.asn1.ASN1Integer getPvno()
public org.bouncycastle.asn1.x509.GeneralName getSender()
public org.bouncycastle.asn1.x509.GeneralName getRecipient()
public void setMessageTime(org.bouncycastle.asn1.DERGeneralizedTime messageTime)
public org.bouncycastle.asn1.ASN1GeneralizedTime getMessageTime()
public void setProtectionAlg(org.bouncycastle.asn1.x509.AlgorithmIdentifier protectionAlg)
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getProtectionAlg()
public void setSenderKID(org.bouncycastle.asn1.DEROctetString senderKID)
public org.bouncycastle.asn1.DEROctetString getSenderKID()
public void setRecipKID(org.bouncycastle.asn1.DEROctetString recipKID)
public org.bouncycastle.asn1.DEROctetString getRecipKID()
public void setTransactionID(org.bouncycastle.asn1.DEROctetString transactionID)
public org.bouncycastle.asn1.DEROctetString getTransactionID()
public void setSenderNonce(org.bouncycastle.asn1.DEROctetString senderNonce)
public org.bouncycastle.asn1.DEROctetString getSenderNonce()
public void setRecipNonce(org.bouncycastle.asn1.DEROctetString recipNonce)
public org.bouncycastle.asn1.DEROctetString getRecipNonce()
public void setFreeText(PKIFreeText freeText)
public PKIFreeText getFreeText()
public void addGeneralInfo(InfoTypeAndValue generalInfo)
public InfoTypeAndValue getGeneralInfo(int nr)
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Agencia de Tecnología y Certificación Electrónica. All Rights Reserved.