public class CAProtEncCert extends java.lang.Object implements ASN1Type
-- Example InfoTypeAndValue contents include, but are not limited to:
-- { CAProtEncCert = {id-it 1}, Certificate }
-- where {id-it} = {id-pkix 4} = {1 3 6 1 5 5 7 4}
InfoTypeAndValue,
RFC 2510| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for an CAProtEncCert.
|
| Constructor and Description |
|---|
CAProtEncCert(ASN1Object obj)
Creates a new
CAProtEncCert object from an
ASN1Object. |
CAProtEncCert(X509Certificate caProtEncCert)
Creates a new
CAProtEncCert object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an CAProtEncCert structure from an
ASN1Object. |
X509Certificate |
getCAProtEncCert()
Returns the CA protocol encryption certificate.
|
ASN1Object |
toASN1Object()
Encodes this
CAProtEncCert object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
CAProtEncCert object. |
public static final ObjectID oid
public CAProtEncCert(X509Certificate caProtEncCert) throws java.lang.IllegalArgumentException
CAProtEncCert object with the specified
component.caProtEncCert - the CA protocol encryption certificatejava.lang.IllegalArgumentException - thrown if the parameter is nullpublic CAProtEncCert(ASN1Object obj) throws CodingException, java.lang.IllegalArgumentException
CAProtEncCert object from an
ASN1Object.
The ASN1Object must be a CAProtEncCert structure.
obj - the ASN.1 representation of a Certificate structureCodingException - thrown if an errors occurs while decoding the ANS1Objectjava.lang.IllegalArgumentException - thrown if the parameter is nullpublic X509Certificate getCAProtEncCert()
public void decode(ASN1Object obj) throws CodingException, java.lang.IllegalArgumentException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a CAProtEncCert structureCodingException - thrown if an errors occurs while decoding the ANS1Objectjava.lang.IllegalArgumentException - thrown if the parameters is nullpublic ASN1Object toASN1Object()
CAProtEncCert object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
CAProtEncCert object.toString in class java.lang.Object