public class CRSPKCSReqMessage extends CRSMessage
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
regInfo
The regInfo string associated with this message.
|
certs, crls, envParams, sigParams| Constructor and Description |
|---|
CRSPKCSReqMessage()
Creates a
CRSPKCSReqMessage with no request or regInfo data specified. |
CRSPKCSReqMessage(CertificateRequest certificateRequest, SigningParameters sigParams, EnvelopingParameters envParams)
Creates a PKCSReq message using a CertificationRequest and no regInfo.
|
CRSPKCSReqMessage(CertificateRequest certificateRequest, java.lang.String regInfo, SigningParameters sigParams, EnvelopingParameters envParams)
Creates a PKCSReq message using a CertificationRequest and regInfo.
|
CRSPKCSReqMessage(java.io.InputStream is)
Creates a
CRSPKCSReqMessage by reading a BER encoding from the given input stream. |
CRSPKCSReqMessage(SigningParameters sigParams, EnvelopingParameters envParams)
Creates a
CRSPKCSReqMessage with no request or regInfo data specified. |
CRSPKCSReqMessage(SPKAC signedKey, SigningParameters sigParams, EnvelopingParameters envParams)
Creates a PKCSReq message using a SignedPublicKeyAndChallenge and no regInfo.
|
CRSPKCSReqMessage(SPKAC signedKey, java.lang.String regInfo, SigningParameters sigParams, EnvelopingParameters envParams)
Creates a PKCSReq message using a SignedPublicKeyAndChallenge and regInfo
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getMessageContents()
Creates the raw ASN.1 encoding of the contents of this message.
|
CertificateRequest |
getPKCS10()
Returns the PKCS #10 certificate request contained in the message, or null if Subject Public Key And Challenge (SPKAC) is used.
|
protected oracle.security.crypto.core.PublicKey |
getPublicKey()
Returns the public key contained in the certificate request.
|
java.lang.String |
getRegInfo()
Returns the contents of regInfo field of the message.
|
SPKAC |
getSPKAC()
Returns the Signed Public Key And Challenge (SPKAC) contained in the message, or null if a PKCS #10 certificate request is used.
|
protected void |
parseMessage(byte[] data)
Initializes message object from raw ASN.1 encoding of the CRS message contents.
|
void |
setEndEntityInfo(CertificateRequest pkcs10)
Sets the value for endEntityInfo using a CertificateRequest.
|
void |
setEndEntityInfo(SPKAC spkac)
Sets the value for endEntityInfo using a SignedPublicKeyAndChallenge.
|
void |
setRegInfo(java.lang.String regInfo)
Sets the regInfo field for this message.
|
java.lang.String |
toString()
Returns a string representation of this message object.
|
attributesToString, containsEnvelope, getAuthenticatedAttributes, getCertificates, getCRLs, getExtensionReq, getFailInfo, getMessageType, getPkiStatus, getRecipientNonce, getSenderNonce, getTransactionId, getVersion, input, inputInstance, isEncrypted, length, output, removeEnclosed, setCertificates, setCRLs, setEnvelopingParameters, setExtensionReq, setFailInfo, setMessageType, setPkiStatus, setRecipientNonce, setSenderNonce, setSigningParameters, setTransactionId, setVersion, updateEncapsulatedContents, updateSignedContents, verify, verifySignatureprotected java.lang.String regInfo
public CRSPKCSReqMessage()
CRSPKCSReqMessage with no request or regInfo data specified.public CRSPKCSReqMessage(SigningParameters sigParams, EnvelopingParameters envParams)
CRSPKCSReqMessage with no request or regInfo data specified.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSPKCSReqMessage(java.io.InputStream is)
throws java.io.IOException
CRSPKCSReqMessage by reading a BER encoding from the given input stream.is - The input stream.java.io.IOException - If the input is not correctly formatted.public CRSPKCSReqMessage(CertificateRequest certificateRequest, SigningParameters sigParams, EnvelopingParameters envParams)
certificateRequeqest. - The CertificateRequest.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSPKCSReqMessage(CertificateRequest certificateRequest, java.lang.String regInfo, SigningParameters sigParams, EnvelopingParameters envParams)
certificateRequeqest. - The CertificateRequest.regInfo - A String representing the regInfo for this PKCSReg message.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSPKCSReqMessage(SPKAC signedKey, SigningParameters sigParams, EnvelopingParameters envParams)
signedKey. - The SPKAC.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSPKCSReqMessage(SPKAC signedKey, java.lang.String regInfo, SigningParameters sigParams, EnvelopingParameters envParams)
signedKey. - The SPKAC.regInfo - A String representing the regInfo for this PKCSReg message.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.protected void parseMessage(byte[] data)
throws java.io.IOException
parseMessage in class CRSMessagedata - The raw ASN.1 encoding.java.io.IOExceptionprotected byte[] getMessageContents()
throws java.io.IOException
getMessageContents in class CRSMessagejava.io.IOExceptionprotected oracle.security.crypto.core.PublicKey getPublicKey()
public java.lang.String getRegInfo()
public CertificateRequest getPKCS10()
public SPKAC getSPKAC()
public void setRegInfo(java.lang.String regInfo)
public void setEndEntityInfo(SPKAC spkac)
public void setEndEntityInfo(CertificateRequest pkcs10)
public java.lang.String toString()
toString in class java.lang.Object