| RSA BSAFE CERT-J |
Certificate Management Components for Java |
| Javadoc |
 
![]() |
It contains the PKI message information that is common to all message types. Not all of the fields of the class are used by every service provider or every message type.
Note: Objects that are passed to a constructor or method or returned from a method of this class are shared. No copy is made. If a copy is needed, make a copy of the object, either before passing it to a constructor or method of this class, or after getting it from a method of this class.
Inheritance diagram for PKIMessage:

Public Methods | |
| PKIMessage () | |
Constructs an empty PKIMessage object. More... | |
| void PKIMessage:: | setWrapInfo (int wrapType, SignerInfo sender, RecipientInfo recipient, String encryptionName, int[] encryptionParams) |
| Populates this object with cryptographic wrapping information, such as signer information if a signature is used to protect the message. More... | |
| int PKIMessage:: | getWrapType () |
| Returns the flag value specifying the type of message protection to be performed. More... | |
| SignerInfo PKIMessage:: | getSender () |
| Returns information about the sender of this message. More... | |
| RecipientInfo PKIMessage:: | getRecipient () |
| Returns information about the recipient of this message. More... | |
| String PKIMessage:: | getEncryptionName () |
| Returns the name of the content-encryption algorithm used to envelope a message. More... | |
| int [] PKIMessage:: | getEncryptionParams () |
| Returns an array of parameters for the content-encryption algorithm used with enveloping. More... | |
| int PKIMessage:: | getVersion () |
| Returns the PKI protocol-specific version number associated with the encoded message format. More... | |
| void PKIMessage:: | setVersion (int version) |
| Sets the PKI protocol-specific version number of the encoded-message format to the value of version. More... | |
| Date PKIMessage:: | getMessageTime () |
| Returns the time when the message was sent. More... | |
| void PKIMessage:: | setMessageTime (Date messageTime) |
| Sets the time when the message was sent to the value given by the argument. More... | |
| Object PKIMessage:: | getProviderData () |
| Returns provider-specific information associated with this message. More... | |
| void PKIMessage:: | setProviderData (Object providerData) |
| Sets the provider data inside this object. More... | |
| byte [] PKIMessage:: | getTransactionID () |
| Returns the transaction ID of this object. More... | |
| void PKIMessage:: | setTransactionID (byte[] transactionID) |
| Sets the transaction ID of this object. More... | |
| String [] PKIMessage:: | getFreeText () |
| Returns a list of text strings that contain context-specific information to accompany the message. More... | |
| void PKIMessage:: | setFreeText (String[] freeText) |
| Sets the free text of this object. More... | |
| Certificate [] PKIMessage:: | getExtraCerts () |
| Returns the extra certificates accompanying the message that may be useful to the recipient. More... | |
| void PKIMessage:: | setExtraCerts (Certificate[] extraCerts) |
| Sets the extra certificates of this object. More... | |
| CRL [] PKIMessage:: | getExtraCRLs () |
| Returns the extra CRLs accompanying the message that may be useful to the recipient. More... | |
| void PKIMessage:: | setExtraCRLs (CRL[] extraCRLs) |
| Sets the extra CRLs of this object. More... | |
Static Public Attributes | |
| final int PKIMessage:: | WRAP_NONE |
| Indicates that the message is not cryptographically protected or signed by the sender. | |
| final int PKIMessage:: | WRAP_SIGN |
| Indicates that the message is signed by the sender. | |
| final int PKIMessage:: | WRAP_ENVELOPE |
| Indicates that the message is encrypted for the recipient. | |
| final int PKIMessage:: | WRAP_SIGN_THEN_ENVELOPE |
| Indicates that the message is first signed by the sender and then encrypted for the recipient. More... | |
| final int PKIMessage:: | WRAP_ENVELOPE_THEN_SIGN |
| Indicates that the message is first encrypted for the recipient and then signed by the sender. | |
|
|
Constructs an empty
|
|
|
Returns the name of the content-encryption algorithm used to envelope a message.
|
|
|
Returns an array of parameters for the content-encryption algorithm used with enveloping.
|
|
|
Returns the extra certificates accompanying the message that may be useful to the recipient.
|
|
|
Returns the extra CRLs accompanying the message that may be useful to the recipient.
|
|
|
Returns a list of text strings that contain context-specific information to accompany the message. The text is meant to be displayed to a user and can contain instructions or other information for that user. Usually, multiple text strings are present only when the same text has been translated into multiple languages. Each individual string contains the text in a single language.
|
|
|
Returns the time when the message was sent.
|
|
|
Returns provider-specific information associated with this message.
|
|
|
Returns information about the recipient of this message. It identifies the intended message recipient. It may also contain information about the key-encryption algorithm and key.
|
|
|
Returns information about the sender of this message. If the message was signed, it may also contain information about the message-signature algorithms and attributes that accompany the signature.
|
|
|
Returns the transaction ID of this object. The transaction ID is used to associate request messages with the corresponding response messages.
|
|
|
Returns the PKI protocol-specific version number associated with the encoded message format.
|
|
|
Returns the flag value specifying the type of message protection to be performed. The value will be one of the
|
|
|
Sets the extra certificates of this object. Note: The extraCerts parameter does not necessarily contain a certification path. The recipient might have to sort, select from, or otherwise process the extra certificates to use them.
|
|
|
Sets the extra CRLs of this object.
|
|
|
Sets the free text of this object.
|
|
|
Sets the time when the message was sent to the value given by the argument. Generally, the application is not required to set this field. It is usually set by the PKI messaging service provider when it encodes or decodes the message.
|
|
|
Sets the provider data inside this object.
|
|
|
Sets the transaction ID of this object.
|
|
|
Sets the PKI protocol-specific version number of the encoded-message format to the value of version. Note: Generally, the application is not required to set this field. It is usually set by the PKI messaging service provider when it encodes or decodes the message.
|
|
||||||||||||||||||||||||
|
Populates this object with cryptographic wrapping information, such as signer information if a signature is used to protect the message.
|
|
|
Indicates that the message is first signed by the sender and then encrypted for the recipient. (The signature is included in the encrypted content.) |