public class KeyRecRepContent extends java.lang.Object implements ASN1Type
KeyRecRepContent ::= SEQUENCE {
status PKIStatusInfo,
newSigCert [0] Certificate OPTIONAL,
caCerts [1] SEQUENCE SIZE (1..MAX) OF Certificate OPTIONAL,
keyPairHist [2] SEQUENCE SIZE (1..MAX) OF CertifiedKeyPair OPTIONAL
}
| Constructor and Description |
|---|
KeyRecRepContent(ASN1Object obj)
Creates a
KeyRecRepContent object from an
ASN1Object. |
KeyRecRepContent(PKIStatusInfo status)
Creates a new
KeyRecRepContent object with the specified
component set. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCaCerts(X509Certificate caCerts)
Adds the specified CA certificate.
|
void |
addKeyPairHist(CertifiedKeyPair keyPairHist)
Adds the specified backed-up user encryption certificate/private key.
|
void |
decode(ASN1Object obj)
Decodes a KeyRecRepContent structure from an
ASN1Object. |
X509Certificate[] |
getCaCerts()
Returns all the CA certificates that this object contains as an array of
X509Certificate objects. |
CertifiedKeyPair[] |
getKeyPairHist()
Returns all the backed-up user encryption certificates/private keys that
this object contains as an array of
CertifiedKeyPair objects. |
X509Certificate |
getNewSigCert()
Returns the user's verification certificate, if it has been set; otherwise
null is returned. |
PKIStatusInfo |
getStatus()
Returns the status information about the request/response.
|
void |
setNewSigCert(X509Certificate newSigCert)
Sets the user's verification certificate.
|
ASN1Object |
toASN1Object()
Encodes this
KeyRecRepContent object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
KeyRecRepContent object. |
public KeyRecRepContent(PKIStatusInfo status)
KeyRecRepContent object with the specified
component set.status - status information about the request/responsepublic KeyRecRepContent(ASN1Object obj) throws CodingException
KeyRecRepContent object from an
ASN1Object.obj - the ASN.1 representation of a KeyRecRepContent structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic PKIStatusInfo getStatus()
public X509Certificate getNewSigCert()
null is returned.public X509Certificate[] getCaCerts()
X509Certificate objects. If this object contains no CA
certificates then an empty array is returned.public CertifiedKeyPair[] getKeyPairHist()
CertifiedKeyPair objects.
If this object contains no backed-up user encryption certificates/private
keys then an empty array is returned.public void setNewSigCert(X509Certificate newSigCert)
newSigCert - the newSigCert componentpublic void addCaCerts(X509Certificate caCerts)
caCerts - the CA certificate to be addedpublic void addKeyPairHist(CertifiedKeyPair keyPairHist)
keyPairHist - the backed-up user encryption certificate/private key to be addedpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of an KeyRecRepContent structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
KeyRecRepContent object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
KeyRecRepContent object.toString in class java.lang.Object