public class CertResponse
extends java.lang.Object
Constructor and Description |
---|
CertResponse()
Create a new, empty
CertResponse . |
CertResponse(java.math.BigInteger certReqID,
PKIStatusInfo status)
Create a new
CertResponse with the specified ID number
(corresponding to the approriate CertRequest ), and
status info. |
CertResponse(java.math.BigInteger certReqID,
PKIStatusInfo status,
CertifiedKeyPair certKeyPair)
Create a new
CertResponse with the specified ID number
(corresponding to the approriate CertRequest ), status info
and CertifiedKeyPair . |
CertResponse(java.io.InputStream is) |
CertResponse(PKIStatusInfo status)
Create a new
CertResponse with the specified status info. |
CertResponse(PKIStatusInfo status,
CertifiedKeyPair certKeyPair)
Create a new
CertResponse with the specified status info
and CertifiedKeyPair . |
Modifier and Type | Method and Description |
---|---|
CertifiedKeyPair |
getCertifiedKeyPair()
Returns the certificate and optional private key/publication info
for this response, or
null if none is present. |
java.math.BigInteger |
getCertReqID()
Get the ID number to match with the corresponding request.
|
UTF8PairsRegInfo |
getResponseInfo() |
PKIStatusInfo |
getStatusInfo()
Get the status of the response.
|
void |
input(java.io.InputStream is) |
int |
length() |
void |
output(java.io.OutputStream os) |
void |
setResponseInfo(UTF8PairsRegInfo rspInfo)
Sets response info for this
CertResponse . |
java.lang.String |
toString() |
public CertResponse()
CertResponse
. Since an object thus created
is not valid, this constructor is intended primarily for use with the
input(java.io.InputStream)
method.public CertResponse(PKIStatusInfo status)
CertResponse
with the specified status info.public CertResponse(java.math.BigInteger certReqID, PKIStatusInfo status)
CertResponse
with the specified ID number
(corresponding to the approriate CertRequest
), and
status info.public CertResponse(PKIStatusInfo status, CertifiedKeyPair certKeyPair)
CertResponse
with the specified status info
and CertifiedKeyPair
.
Note: A CertifiedKeyPair
containing a certificate
may not be included if the response status is REJECTION or WAITING
and/or contains failure info. Instead use the CertResponse(PKIStatusInfo)
or CertResponse(BigInteger, PKIStatusInfo)
constructor.
public CertResponse(java.math.BigInteger certReqID, PKIStatusInfo status, CertifiedKeyPair certKeyPair)
CertResponse
with the specified ID number
(corresponding to the approriate CertRequest
), status info
and CertifiedKeyPair
.
Note: A CertifiedKeyPair
containing a certificate
may not be included if the response status is REJECTION or WAITING
and/or contains failure info. Instead use the CertResponse(PKIStatusInfo)
or CertResponse(BigInteger, PKIStatusInfo)
constructor.
public CertResponse(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public java.math.BigInteger getCertReqID()
null
if not specified.public PKIStatusInfo getStatusInfo()
public CertifiedKeyPair getCertifiedKeyPair()
null
if none is present.public void setResponseInfo(UTF8PairsRegInfo rspInfo)
CertResponse
.
Note: Response info may not be included if the response status is WAITING.
public UTF8PairsRegInfo getResponseInfo()
public java.lang.String toString()
toString
in class java.lang.Object
public void input(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public int length()