public class CRSCertRepMessage extends CRSMessage
certs, crls, envParams, sigParams| Constructor and Description |
|---|
CRSCertRepMessage()
Creates a
CRSCertRepMessage with no certificates or CRLs specified. |
CRSCertRepMessage(java.io.InputStream is)
Creates a
CRSCertRepMessage by reading a BER encoding from the given input stream. |
CRSCertRepMessage(SigningParameters sigParams, EnvelopingParameters envParams)
Creates a
CRSCertRepMessage with no certificates or CRLs specified. |
CRSCertRepMessage(java.util.Vector certs, java.util.Vector crls, SigningParameters sigParams, EnvelopingParameters envParams)
Creates a
CRSCertRepMessage with the given certficates and CRLs. |
CRSCertRepMessage(java.util.Vector certs, java.util.Vector crls, java.lang.String rspInfo, SigningParameters sigParams, EnvelopingParameters envParams)
Creates a
CRSCertRepMessage with the given certficates, CRLs, and rspInfo. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector |
getEncapsulatedCerts()
Returns the encapsulated certificates included in this message.
|
java.util.Vector |
getEncapsulatedCRLs()
Returns the encapsulated CRLs included in this message.
|
protected byte[] |
getMessageContents()
Creates the raw ASN.1 encoding of the contents of this message.
|
java.lang.String |
getRspInfo()
Returns the rspInfo string for this message.
|
protected void |
parseMessage(byte[] data)
Initializes message object from raw ASN.1 encoding of the CRS message contents.
|
void |
setEncapsulatedCerts(java.util.Vector certs)
Sets the encapsulated certificates to be included with this message.
|
void |
setEncapsulatedCRLs(java.util.Vector crls)
Sets the encapsulated CRLs to be included with this message.
|
void |
setRspInfo(java.lang.String rspInfo)
Sets the rspInfo string 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, verifySignaturepublic CRSCertRepMessage()
CRSCertRepMessage with no certificates or CRLs specified.public CRSCertRepMessage(SigningParameters sigParams, EnvelopingParameters envParams)
CRSCertRepMessage with no certificates or CRLs specified.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSCertRepMessage(java.io.InputStream is)
throws java.io.IOException
CRSCertRepMessage 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 CRSCertRepMessage(java.util.Vector certs,
java.util.Vector crls,
SigningParameters sigParams,
EnvelopingParameters envParams)
CRSCertRepMessage with the given certficates and CRLs.certificates - The certificates. .crls - The CRLs.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSCertRepMessage(java.util.Vector certs,
java.util.Vector crls,
java.lang.String rspInfo,
SigningParameters sigParams,
EnvelopingParameters envParams)
CRSCertRepMessage with the given certficates, CRLs, and rspInfo.certificates - The certificates.crls - The CRLs.rspInfo - The rspInfo.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.protected byte[] getMessageContents()
throws java.io.IOException
getMessageContents in class CRSMessagejava.io.IOExceptionpublic void setRspInfo(java.lang.String rspInfo)
public java.lang.String getRspInfo()
throws oracle.security.crypto.crs.CRSFormatException
oracle.security.crypto.crs.CRSFormatExceptionpublic void setEncapsulatedCerts(java.util.Vector certs)
certs - The certificates.public java.util.Vector getEncapsulatedCerts()
public void setEncapsulatedCRLs(java.util.Vector crls)
crls - The CRLs.public java.util.Vector getEncapsulatedCRLs()
protected void parseMessage(byte[] data)
throws java.io.IOException
parseMessage in class CRSMessagedata - The raw ASN.1 encoding.java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object