| Modifier and Type | Field and Description |
|---|---|
| private PKIBody | |
| private List | |
| private List | |
| private PKIHeaderBuilder |
| Access | Constructor and Description |
|---|---|
| public | ProtectedPKIMessageBuilder(GeneralName
message sender. sender, GeneralName intended recipient. recipient)Commence a message with the header version CMP_2000. |
| public | ProtectedPKIMessageBuilder(int
the version CMP_1999 or CMP_2000. pvno, GeneralName message sender. sender, GeneralName intended recipient. recipient)Commence a message with a specific header type. |
| Modifier and Type | Method and Description |
|---|---|
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.the extra certificate to add. extraCert)Add an "extra certificate" to the message. |
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.the generalInfo data to be added. genInfo)Add a generalInfo data record to the header of the new message. |
| public ProtectedPKIMessage | Returns: the resulting protected PKI message.MAC calculator. macCalculator)Build a protected PKI message which has MAC based integrity protection. |
| public ProtectedPKIMessage | Returns: the resulting protected PKI message.the ContentSigner to be used to calculate the signature. signer)Build a protected PKI message which has MAC based integrity protection. |
| private byte[] | |
| private byte[] | |
| private void | |
| private ProtectedPKIMessage | |
| public ProtectedPKIMessageBuilder | |
| public ProtectedPKIMessageBuilder | |
| public ProtectedPKIMessageBuilder | |
| public ProtectedPKIMessageBuilder | |
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.the contents of the human readable message, freeText)Include a human-readable message in the new message. |
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.the message creation time. time)Set the creation time for the new message. |
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.a key identifier. kid)Set the recipient key identifier for the key to be used to verify the new message. |
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.a NONCE, typically copied from the sender nonce of the previous message. nonce)Set the recipient nonce field on the new message. |
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.a key identifier. kid)Set the sender key identifier for the key used to protect the new message. |
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.a NONCE, typically 128 bits of random data. nonce)Set the sender nonce field on the new message. |
| public ProtectedPKIMessageBuilder | Returns: the current builder instance.the transaction ID. tid)Set the identifier for the transaction the new message will belong to. |
| body | back to summary |
|---|---|
| private PKIBody body | |
| extraCerts | back to summary |
|---|---|
| private List<E> extraCerts | |
| generalInfos | back to summary |
|---|---|
| private List<E> generalInfos | |
| hdrBuilder | back to summary |
|---|---|
| private PKIHeaderBuilder hdrBuilder | |
| ProtectedPKIMessageBuilder | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder(GeneralName sender, GeneralName recipient) Commence a message with the header version CMP_2000.
| |
| ProtectedPKIMessageBuilder | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder(int pvno, GeneralName sender, GeneralName recipient) Commence a message with a specific header type.
| |
| addCMPCertificate | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder addCMPCertificate(X509CertificateHolder extraCert) Add an "extra certificate" to the message.
| |
| addGeneralInfo | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder addGeneralInfo(InfoTypeAndValue genInfo) Add a generalInfo data record to the header of the new message.
| |
| build | back to summary |
|---|---|
| public ProtectedPKIMessage build(MacCalculator macCalculator) throws CMPException Build a protected PKI message which has MAC based integrity protection.
| |
| build | back to summary |
|---|---|
| public ProtectedPKIMessage build(ContentSigner signer) throws CMPException Build a protected PKI message which has MAC based integrity protection.
| |
| calculateMac | back to summary |
|---|---|
| private byte[] calculateMac(MacCalculator macCalculator, PKIHeader header, PKIBody body) throws IOException | |
| calculateSignature | back to summary |
|---|---|
| private byte[] calculateSignature(ContentSigner signer, PKIHeader header, PKIBody body) throws IOException | |
| finaliseHeader | back to summary |
|---|---|
| private void finaliseHeader(AlgorithmIdentifier algorithmIdentifier) | |
| finaliseMessage | back to summary |
|---|---|
| private ProtectedPKIMessage finaliseMessage(PKIHeader header, DERBitString protection) | |
| setBody | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setBody(PKIBody body) Set the body for the new message
| |
| setBody | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setBody(int bodyType, CertificateReqMessages certificateReqMessages) | |
| setBody | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setBody(int bodyType, CertificateRepMessage certificateRepMessage) | |
| setBody | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setBody(int bodyType, CertificateConfirmationContent certificateConfirmationContent) | |
| setFreeText | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setFreeText(PKIFreeText freeText) Include a human-readable message in the new message.
| |
| setMessageTime | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setMessageTime(Date time) Set the creation time for the new message.
| |
| setRecipKID | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setRecipKID(byte[] kid) Set the recipient key identifier for the key to be used to verify the new message.
| |
| setRecipNonce | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setRecipNonce(byte[] nonce) Set the recipient nonce field on the new message.
| |
| setSenderKID | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setSenderKID(byte[] kid) Set the sender key identifier for the key used to protect the new message.
| |
| setSenderNonce | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setSenderNonce(byte[] nonce) Set the sender nonce field on the new message.
| |
| setTransactionID | back to summary |
|---|---|
| public ProtectedPKIMessageBuilder setTransactionID(byte[] tid) Set the identifier for the transaction the new message will belong to.
| |