java.lang.Object | |
↳ | org.bouncycastle.cert.cmp.ProtectedPKIMessageBuilder |
Builder for creating a protected PKI message.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Commence a message with the header version CMP_2000.
| |||||||||||
Commence a message with a specific header type.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add an "extra certificate" to the message.
| |||||||||||
Add a generalInfo data record to the header of the new message.
| |||||||||||
Build a protected PKI message which has MAC based integrity protection.
| |||||||||||
Build a protected PKI message which has MAC based integrity protection.
| |||||||||||
Set the body for the new message
| |||||||||||
Include a human-readable message in the new message.
| |||||||||||
Set the creation time for the new message.
| |||||||||||
Set the recipient key identifier for the key to be used to verify the new message.
| |||||||||||
Set the recipient nonce field on the new message.
| |||||||||||
Set the sender key identifier for the key used to protect the new message.
| |||||||||||
Set the sender nonce field on the new message.
| |||||||||||
Set the identifier for the transaction the new message will belong to.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Commence a message with the header version CMP_2000.
sender | message sender. |
---|---|
recipient | intended recipient. |
Commence a message with a specific header type.
pvno | the version CMP_1999 or CMP_2000. |
---|---|
sender | message sender. |
recipient | intended recipient. |
Add an "extra certificate" to the message.
extraCert | the extra certificate to add. |
---|
Add a generalInfo data record to the header of the new message.
genInfo | the generalInfo data to be added. |
---|
Build a protected PKI message which has MAC based integrity protection.
signer | the ContentSigner to be used to calculate the signature. |
---|
CMPException | if the protection signature cannot be calculated. |
---|
Build a protected PKI message which has MAC based integrity protection.
macCalculator | MAC calculator. |
---|
CMPException | if the protection MAC cannot be calculated. |
---|
Set the body for the new message
body | the message body. |
---|
Include a human-readable message in the new message.
freeText | the contents of the human readable message, |
---|
Set the creation time for the new message.
time | the message creation time. |
---|
Set the recipient key identifier for the key to be used to verify the new message.
kid | a key identifier. |
---|
Set the recipient nonce field on the new message.
nonce | a NONCE, typically copied from the sender nonce of the previous message. |
---|
Set the sender key identifier for the key used to protect the new message.
kid | a key identifier. |
---|
Set the sender nonce field on the new message.
nonce | a NONCE, typically 128 bits of random data. |
---|
Set the identifier for the transaction the new message will belong to.
tid | the transaction ID. |
---|