public class CertificateBody
extends org.bouncycastle.asn1.ASN1Object
CertificateBody ::= SEQUENCE { // version of the certificate format. Must be 0 (version 1) CertificateProfileIdentifer ASN1TaggedObject, // uniquely identifies the issuing CA's signature key pair // contains the iso3166-1 alpha2 encoded country code, the // name of issuer and the sequence number of the key pair. CertificationAuthorityReference ASN1TaggedObject, // stores the encoded public key PublicKey Iso7816PublicKey, // associates the public key contained in the certificate with a unique name // contains the iso3166-1 alpha2 encoded country code, the // name of the holder and the sequence number of the key pair. certificateHolderReference ASN1TaggedObject, // Encodes the role of the holder (i.e. CVCA, DV, IS) and assigns read/write // access rights to data groups storing sensitive data certificateHolderAuthorization Iso7816CertificateHolderAuthorization, // the date of the certificate generation CertificateEffectiveDate ASN1TaggedObject, // the date after which the certificate expires certificateExpirationDate ASN1TaggedObject }
Modifier and Type | Field and Description |
---|---|
static int |
profileType
Deprecated.
|
static int |
requestType
Deprecated.
|
Constructor and Description |
---|
CertificateBody(org.bouncycastle.asn1.ASN1TaggedObject certificateProfileIdentifier,
CertificationAuthorityReference certificationAuthorityReference,
PublicKeyDataObject publicKey,
CertificateHolderReference certificateHolderReference,
CertificateHolderAuthorization certificateHolderAuthorization,
PackedDate certificateEffectiveDate,
PackedDate certificateExpirationDate)
builds an Iso7816CertificateBody by settings each parameters.
|
Modifier and Type | Method and Description |
---|---|
PackedDate |
getCertificateEffectiveDate() |
PackedDate |
getCertificateExpirationDate() |
CertificateHolderAuthorization |
getCertificateHolderAuthorization()
the Iso7816CertificateHolderAuthorization encodes the role of the holder
(i.e.
|
CertificateHolderReference |
getCertificateHolderReference()
certificateHolderReference : associates the public key contained in the certificate with a unique name
|
org.bouncycastle.asn1.ASN1TaggedObject |
getCertificateProfileIdentifier()
CertificateProfileIdentifier : version of the certificate format.
|
int |
getCertificateType()
gives the type of the certificate (value should be profileType or requestType if all data are set).
|
CertificationAuthorityReference |
getCertificationAuthorityReference()
get the certificationAuthorityReference
certificationAuthorityReference : uniquely identifies the issuing CA's signature key pair
|
static CertificateBody |
getInstance(java.lang.Object obj)
Gives an instance of Iso7816CertificateBody taken from Object obj
|
PublicKeyDataObject |
getPublicKey() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
create a "request" or "profile" type Iso7816CertificateBody according to the variables sets.
|
public static final int profileType
public static final int requestType
public CertificateBody(org.bouncycastle.asn1.ASN1TaggedObject certificateProfileIdentifier, CertificationAuthorityReference certificationAuthorityReference, PublicKeyDataObject publicKey, CertificateHolderReference certificateHolderReference, CertificateHolderAuthorization certificateHolderAuthorization, PackedDate certificateEffectiveDate, PackedDate certificateExpirationDate)
certificateProfileIdentifier
- certificationAuthorityReference
- publicKey
- certificateHolderReference
- certificateHolderAuthorization
- certificateEffectiveDate
- certificateExpirationDate
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object
public int getCertificateType()
public static CertificateBody getInstance(java.lang.Object obj) throws java.io.IOException
obj
- is the Object to extract the certificate body from.java.io.IOException
- if object is not valid.public PackedDate getCertificateEffectiveDate()
public PackedDate getCertificateExpirationDate() throws java.io.IOException
java.io.IOException
public CertificateHolderAuthorization getCertificateHolderAuthorization() throws java.io.IOException
java.io.IOException
public CertificateHolderReference getCertificateHolderReference()
public org.bouncycastle.asn1.ASN1TaggedObject getCertificateProfileIdentifier()
public CertificationAuthorityReference getCertificationAuthorityReference() throws java.io.IOException
java.io.IOException
public PublicKeyDataObject getPublicKey()