public class CRSGetCertMessage extends CRSMessage
certs, crls, envParams, sigParams| Constructor and Description |
|---|
CRSGetCertMessage()
Constructs a
CRSGetCertMessage with no issuer name or serial number specified. |
CRSGetCertMessage(java.io.InputStream is)
Creates a
CRSGetCertMessage by reading a BER encoding from the given input stream. |
CRSGetCertMessage(SigningParameters sigParams, EnvelopingParameters envParams)
Constructs a
CRSGetCertMessage with no issuer name or serial number specified. |
CRSGetCertMessage(X500Name issuerName, java.math.BigInteger serialNumber, SigningParameters sigParams, EnvelopingParameters envParams)
Constructs a CRSGetCertMessage with an issuer name and serial number specified.
|
CRSGetCertMessage(X500Name issuerName, SigningParameters sigParams, EnvelopingParameters envParams)
Constructs a CRSGetCertMessage with an issuer name specified.
|
| Modifier and Type | Method and Description |
|---|---|
X500Name |
getIssuerName()
Returns the issuerName for this mesage.
|
protected byte[] |
getMessageContents()
Creates the raw ASN.1 encoding of the contents of this message.
|
java.math.BigInteger |
getSerialNumber()
Gets the serialNumber for this message.
|
protected void |
parseMessage(byte[] data)
Initializes message object from raw ASN.1 encoding of the CRS message contents.
|
void |
setIssuerName(X500Name issuerName)
Set the issuerName for this message.
|
void |
setSerialNumber(java.math.BigInteger serialNumber)
Set the serialNumber 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 CRSGetCertMessage()
CRSGetCertMessage with no issuer name or serial number specified.public CRSGetCertMessage(SigningParameters sigParams, EnvelopingParameters envParams)
CRSGetCertMessage with no issuer name or serial number specified.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSGetCertMessage(java.io.InputStream is)
throws java.io.IOException
CRSGetCertMessage 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 CRSGetCertMessage(X500Name issuerName, SigningParameters sigParams, EnvelopingParameters envParams)
issuerName - The X500Name of the issuer.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSGetCertMessage(X500Name issuerName, java.math.BigInteger serialNumber, SigningParameters sigParams, EnvelopingParameters envParams)
issuerName - The X500Name of the issuer.serialNumber - The serial number.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public void setIssuerName(X500Name issuerName)
public X500Name getIssuerName() throws oracle.security.crypto.crs.CRSFormatException
oracle.security.crypto.crs.CRSFormatExceptionpublic void setSerialNumber(java.math.BigInteger serialNumber)
public java.math.BigInteger getSerialNumber()
throws oracle.security.crypto.crs.CRSFormatException
oracle.security.crypto.crs.CRSFormatExceptionprotected 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.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object