public class SimpleResponse
extends java.lang.Object
| Constructor and Description |
|---|
SimpleResponse()
Create an empty
SimpleResponse instance. |
SimpleResponse(java.io.InputStream is)
Create a new
SimpleResponse by reading from the specified input stream. |
SimpleResponse(java.util.Vector certs, java.util.Vector crls)
Create a
SimpleResponse instance with the specified value. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCertificate(X509 cert)
Appends the given certificate to the list of certificates.
|
void |
addCertificates(java.util.Vector certs)
Appends all of the given certificates to the list of certificates.
|
void |
addCRL(CRL crl)
Appends the given CRL to the list of CRLs.
|
void |
addCRLs(java.util.Vector crls)
Appends all of the given CRLs to the list of CRLs
|
java.util.Vector |
getCertificates()
Returns the list of certificates included with this signed data object.
|
java.util.Vector |
getCRLs()
Returns the list of CRLs included with this signed data object.
|
void |
input(java.io.InputStream is)
Create a new simple enrollment response 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 response to the specified output stream.
|
public SimpleResponse()
SimpleResponse instance.
public SimpleResponse(java.util.Vector certs,
java.util.Vector crls)
throws AuthenticationException
SimpleResponse instance with the specified value.certs - The list of X509 certificates.crls - The list of CRLs.AuthenticationException
public SimpleResponse(java.io.InputStream is)
throws java.io.IOException
SimpleResponse 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 addCertificate(X509 cert)
cert - The certificate to add.public void addCRL(CRL crl)
crl - The CRL to add.public void addCertificates(java.util.Vector certs)
certs - The list of X509 certificates.public void addCRLs(java.util.Vector crls)
crls - The list of CRLs.public java.util.Vector getCertificates()
public java.util.Vector getCRLs()
public void input(java.io.InputStream is)
throws java.io.IOException
is - The input stream containing the encoded CMS certs-only message.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()