public class FullRequest
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
This class assumes that the input CMSContentInfo object has been signed/encrypted in accordance with the CMC processing rules.
This class requires the users to use the CMS APIs directly on the underlying CMS objects to sign and/or encrypt.
| Constructor and Description |
|---|
FullRequest()
Create an empty
FullRequest instance. |
FullRequest(CMSContentInfo cms)
Create a
FullRequest instance with the specified value. |
FullRequest(java.io.InputStream is)
Create a new
FullRequest by reading from the specified input stream. |
| Modifier and Type | Method and Description |
|---|---|
CMSContentInfo |
getCMSContentInfo()
Gets the wrapped enrollment request.
|
PKIData |
getPKIData()
Returns the full enrollment request underlying the CMS signed-data wrapper.
|
PKIData |
getPKIData(oracle.security.crypto.core.PrivateKey privKey, X509 pubKey)
Returns the full enrollment request underlying the CMS enveloped-data wrapper.
|
void |
input(java.io.InputStream is)
Create a new full enrollment request by reading from the specified input stream.
|
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs the full enrollment request to the specified output stream.
|
void |
setCMSContentInfo(CMSContentInfo cms)
Sets the wrapped enrollment request.
|
public FullRequest()
FullRequest instance.public FullRequest(CMSContentInfo cms) throws oracle.security.crypto.util.InvalidInputException
FullRequest instance with the specified value.cms - The enrollment request.oracle.security.crypto.util.InvalidInputException - The enrollment request must be of type id-signedData, id-envelopedData or id-cct-PKIData only.public FullRequest(java.io.InputStream is)
throws java.io.IOException
FullRequest by reading from the specified input stream.is - The input stream containing the encoded CMSSignedData or CMSEnvelopedData..java.io.IOException - The input encoding is incorrect or an I/O error occurs.public void setCMSContentInfo(CMSContentInfo cms) throws oracle.security.crypto.util.InvalidInputException
cms - The enrollment request.oracle.security.crypto.util.InvalidInputException - The enrollment request must be of type id-signedData, id-envelopedData or id-cct-PKIData only.public CMSContentInfo getCMSContentInfo()
public PKIData getPKIData()
Please note that the presence or validity of a signature covering the enrollment request has not checked.
PKIData, or null if the underlying content is not a CMC request message or an error is encountered.public PKIData getPKIData(oracle.security.crypto.core.PrivateKey privKey, X509 pubKey)
privKey - The recipient's private decryption key.pubKey - The recipient's public key certificate.
Please note that the presence or validity of a signature covering the enrollment request has not checked.
PKIData, or null if the underlying content is not a CMC request message or an error is encountered.public void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamableis - The input stream containing the encoded CMSContentInfo.java.io.IOException - The input encoding is incorrect or an I/O error occurs.public void output(java.io.OutputStream os)
throws java.io.IOException
output in interface oracle.security.crypto.util.Streamableos - The output stream.java.io.IOException - An I/O error occurs.public int length()
length in interface oracle.security.crypto.util.Streamable