public class SimpleRequest
extends java.lang.Object
This class assumes that the underlying certification request has been signed.
| Constructor and Description |
|---|
SimpleRequest()
Create an empty
SimpleRequest instance. |
SimpleRequest(CertificateRequest pkcs10)
Create a
SimpleRequest instance with the specified value. |
SimpleRequest(java.io.InputStream is)
Create a new
SimpleRequest by reading from the specified input stream. |
| Modifier and Type | Method and Description |
|---|---|
CertificateRequest |
getCertificateRequest()
Returns the enrollment request.
|
void |
input(java.io.InputStream is)
Create a new simple 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 simple enrollment request to the specified output stream.
|
void |
setCertificateRequest(CertificateRequest pkcs10)
Sets the enrollment request.
|
public SimpleRequest()
SimpleRequest instance.public SimpleRequest(CertificateRequest pkcs10) throws AuthenticationException
SimpleRequest instance with the specified value.pkcs10 - The enrollment request.AuthenticationException - The enrollment request has not been signed or the signature is invalid.
public SimpleRequest(java.io.InputStream is)
throws java.io.IOException
SimpleRequest by reading from the specified input stream.is - The input stream containing the encoded CertificateRequest.java.io.IOException - The input encoding is incorrect or an I/O error occurs.public void setCertificateRequest(CertificateRequest pkcs10) throws AuthenticationException
pkcs10 - The enrollment request.AuthenticationException - The enrollment request has not been signed or the signature is invalid.public CertificateRequest getCertificateRequest()
Please note that the presence or validity of a signature covering the enrollment request has not checked.
CertificateRequest.
public void input(java.io.InputStream is)
throws java.io.IOException
is - The input stream containing the encoded CertificateRequest.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
os - The output stream.java.io.IOException - An I/O error occurs.public int length()