PKIHeaderpublic class PKIHeader
extends java.lang.Object
| Constructor and Description |
|---|
PKIHeader(ASN1Object header)
Deprecated.
This constructor parses an ASN.1 object into an encapsulated
PKIHeader.
|
PKIHeader(int pvno)
Deprecated.
This constructor creates an empty PKIHeader object.
|
PKIHeader(int pvno,
GeneralName sender,
GeneralName recipient,
GeneralizedTime messageTime,
AlgorithmID protectionAlg,
ASN1Object senderKID,
ASN1Object recipKID,
OCTET_STRING transactionID,
OCTET_STRING senderNonce,
OCTET_STRING recipNonce)
Deprecated.
This constructor, given all of the information that can be included, creates
a PKIHeader object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object message)
Deprecated.
This method decodes an ASN.1 object into its encapsulated form.
|
java.lang.String[] |
getFreeText()
Deprecated.
|
GeneralizedTime |
getMessageTime()
Deprecated.
This method returns the time at which the message was created.
|
AlgorithmID |
getProtectionAlg()
Deprecated.
This method returns the protection algorithm associated with the
PKIHeader.
|
GeneralName |
getRecipient()
Deprecated.
This method returns the name of the intended recipient.
|
ASN1Object |
getRecipKID()
Deprecated.
This method returns the recipient's key identifier.
|
OCTET_STRING |
getRecipNonce()
Deprecated.
This method returns the recipient random nonce associated with the
PKIHeader.
|
GeneralName |
getSender()
Deprecated.
This method returns the sender associated with the PKIHeader.
|
ASN1Object |
getSenderKID()
Deprecated.
This method returns the sender's key identifier.
|
OCTET_STRING |
getSenderNonce()
Deprecated.
This method returns the sender random nonce associated with the
PKIHeader.
|
OCTET_STRING |
getTransactionID()
Deprecated.
This method returns the transaction ID associated with the
PKIHeader.
|
void |
setFreeText(java.lang.String[] freeText)
Deprecated.
|
void |
setMessageTime()
Deprecated.
This method sets the time at which this message was created to
the current time.
|
void |
setMessageTime(GeneralizedTime messageTime)
Deprecated.
This method sets the time at which this message was created.
|
void |
setProtectionAlg(AlgorithmID protectionAlg)
Deprecated.
This method sets the protection algorithm field in the header.
|
void |
setRecipient(GeneralName recipient)
Deprecated.
This method sets the name of the intended recipient.
|
void |
setRecipKID(ASN1Object recipKID)
Deprecated.
This method sets the recipient's key identifier.
|
void |
setRecipNonce(OCTET_STRING recipNonce)
Deprecated.
This method sets the recipient random nonce associated with the
PKIHeader.
|
void |
setSender(GeneralName sender)
Deprecated.
This method sets the sender associated with the PKIHeader.
|
void |
setSenderKID(ASN1Object senderKID)
Deprecated.
This method sets the sender's key identifier.
|
void |
setSenderNonce(OCTET_STRING senderNonce)
Deprecated.
This method sets the sender random nonce associated with the
PKIHeader.
|
void |
setTransactionID(OCTET_STRING transactionID)
Deprecated.
This method sets the transaction ID associated with the
PKIHeader.
|
ASN1Object |
toASN1Object()
Deprecated.
This method converts the encapsulated representation to a raw ASN.1
representation.
|
public PKIHeader(int pvno)
public PKIHeader(ASN1Object header) throws CodingException
header - The ASN.1 representation of a PKIX
header.CodingException - This exception is thrown if the header cannot be
properly parsed.public PKIHeader(int pvno,
GeneralName sender,
GeneralName recipient,
GeneralizedTime messageTime,
AlgorithmID protectionAlg,
ASN1Object senderKID,
ASN1Object recipKID,
OCTET_STRING transactionID,
OCTET_STRING senderNonce,
OCTET_STRING recipNonce)
sender - The name of the sender.recipient - The name of the intended recipient.messageTime - The time at which the message was sent.protectionAlg - The algorithm used for signing the
message.senderKID - The ID number used to identify the sender.recipKID - The ID number used to identify the recipient.transactionID - The ID number used to identify the
transaction.senderNonce - A random number generated by the sender to
represent the transaction.recipNonce - A random number generated by the recipient
to represent the transaction.public ASN1Object toASN1Object() throws CodingException
CodingExceptionpublic GeneralName getSender()
public void setSender(GeneralName sender)
sender - The name of the sender.public GeneralName getRecipient()
public void setRecipient(GeneralName recipient)
recipient - The name of the intended recipient.public GeneralizedTime getMessageTime()
public void setMessageTime()
public void setMessageTime(GeneralizedTime messageTime)
messageTime - The time at which the message was created.public AlgorithmID getProtectionAlg()
public void setProtectionAlg(AlgorithmID protectionAlg)
protectionAlg - The protection algorithm used for the PKIX message.public ASN1Object getSenderKID()
public void setSenderKID(ASN1Object senderKID)
senderKID - The sender's key identifier.public ASN1Object getRecipKID()
public void setRecipKID(ASN1Object recipKID)
recipKID - The recipient's key identifier.public OCTET_STRING getTransactionID()
public void setTransactionID(OCTET_STRING transactionID)
transactionID - The transaction ID used to identify the transaction.public OCTET_STRING getSenderNonce()
public void setSenderNonce(OCTET_STRING senderNonce)
senderNonce - The random sender nonce used to identify the transaction.public OCTET_STRING getRecipNonce()
public void setRecipNonce(OCTET_STRING recipNonce)
recipNonce - The random recipient nonce used to identify the transaction.public java.lang.String[] getFreeText()
public void setFreeText(java.lang.String[] freeText)
public void decode(ASN1Object message) throws CodingException
message - The message to decode.CodingException - This exception is thrown if the message cannot be parsed.