public class CRSGetCertInitialMessage extends CRSMessage
certs, crls, envParams, sigParams| Constructor and Description |
|---|
CRSGetCertInitialMessage()
Constructs a
CRSGetCertInitial message with no issuer, subject, or regInfo specified. |
CRSGetCertInitialMessage(java.io.InputStream is)
Creates a
CRSGetCertInitialMessage by reading a BER encoding from the given input stream. |
CRSGetCertInitialMessage(SigningParameters sigParams, EnvelopingParameters envParams)
Constructs a
CRSGetCertInitial message with no issuer, subject, or regInfo specified. |
CRSGetCertInitialMessage(X500Name issuer, X500Name subject, SigningParameters sigParams, EnvelopingParameters envParams)
Constructs a CRSGetCertInitial message with an issuer and subject specified.
|
CRSGetCertInitialMessage(X500Name issuer, X500Name subject, java.lang.String regInfo, SigningParameters sigParams, EnvelopingParameters envParams)
Constructs a CRSGetCertInitial message with an issuer, subject specified.
|
| Modifier and Type | Method and Description |
|---|---|
X500Name |
getIssuer()
Returns the issuer for this message.
|
byte[] |
getMessageContents()
Creates the raw ASN.1 encoding of the contents of this message.
|
java.lang.String |
getRegInfo()
Returns the regInfo for this message.
|
X500Name |
getSubject()
Returns the subject for this message.
|
protected void |
parseMessage(byte[] data)
Initializes message object from raw ASN.1 encoding of the CRS message contents.
|
void |
setIssuer(X500Name issuer)
Sets the issuer for this message.
|
void |
setRegInfo(java.lang.String regInfo)
Sets the regInfo for this message.
|
void |
setSubject(X500Name subject)
Sets the subject 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 CRSGetCertInitialMessage()
CRSGetCertInitial message with no issuer, subject, or regInfo specified.public CRSGetCertInitialMessage(SigningParameters sigParams, EnvelopingParameters envParams)
CRSGetCertInitial message with no issuer, subject, or regInfo specified.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSGetCertInitialMessage(java.io.InputStream is)
throws java.io.IOException
CRSGetCertInitialMessage 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 CRSGetCertInitialMessage(X500Name issuer, X500Name subject, SigningParameters sigParams, EnvelopingParameters envParams)
issuer - The X500Name of the issuer.subject - The X500Name of the subject.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public CRSGetCertInitialMessage(X500Name issuer, X500Name subject, java.lang.String regInfo, SigningParameters sigParams, EnvelopingParameters envParams)
issuer - The X500Name of the issuer.subject - The X500Name of the subject.regInfo - A String representing the regInfo.sigParams - The SignatureParameters.envParams - The EnvelopingParameters.public void setIssuer(X500Name issuer)
public X500Name getIssuer()
public void setSubject(X500Name subject)
public X500Name getSubject()
public void setRegInfo(java.lang.String regInfo)
public java.lang.String getRegInfo()
public byte[] getMessageContents()
throws java.io.IOException
getMessageContents in class CRSMessagejava.io.IOExceptionprotected 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