public class CVCertificate
extends org.bouncycastle.asn1.ASN1Object
Certificate ::= SEQUENCE {
CertificateBody Iso7816CertificateBody,
signature DER Application specific
}
| Constructor and Description |
|---|
CVCertificate(org.bouncycastle.asn1.ASN1InputStream aIS)
Create an iso7816Certificate structure from an ASN1InputStream.
|
CVCertificate(CertificateBody body,
byte[] signature)
Create an iso7816Certificate structure from a body and its signature.
|
| Modifier and Type | Method and Description |
|---|---|
CertificationAuthorityReference |
getAuthorityReference() |
CertificateBody |
getBody()
Gives the body of the certificate.
|
int |
getCertificateType() |
PackedDate |
getEffectiveDate() |
PackedDate |
getExpirationDate() |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getHolderAuthorization() |
Flags |
getHolderAuthorizationRights() |
int |
getHolderAuthorizationRole() |
CertificateHolderReference |
getHolderReference() |
static CVCertificate |
getInstance(java.lang.Object obj)
Create an iso7816Certificate structure from an object.
|
int |
getRole()
return a bits field coded on one byte.
|
byte[] |
getSignature()
Gives the signature of the whole body.
|
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
public CVCertificate(org.bouncycastle.asn1.ASN1InputStream aIS)
throws java.io.IOException
aIS - the byte stream to parse.java.io.IOException - if there is a problem parsing the data.public CVCertificate(CertificateBody body, byte[] signature) throws java.io.IOException
body - the Iso7816CertificateBody object containing the body.signature - the byte array containing the signaturejava.io.IOException - if there is a problem parsing the data.public static CVCertificate getInstance(java.lang.Object obj)
obj - the Object to extract the certificate from.public byte[] getSignature()
public CertificateBody getBody()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive in interface org.bouncycastle.asn1.ASN1EncodabletoASN1Primitive in class org.bouncycastle.asn1.ASN1ObjectASN1Object.toASN1Primitive()public org.bouncycastle.asn1.ASN1ObjectIdentifier getHolderAuthorization()
throws java.io.IOException
java.io.IOExceptionpublic PackedDate getEffectiveDate() throws java.io.IOException
java.io.IOExceptionpublic int getCertificateType()
public PackedDate getExpirationDate() throws java.io.IOException
java.io.IOExceptionpublic int getRole()
throws java.io.IOException
java.io.IOExceptionCertificateHolderAuthorizationpublic CertificationAuthorityReference getAuthorityReference() throws java.io.IOException
java.io.IOExceptionpublic CertificateHolderReference getHolderReference() throws java.io.IOException
java.io.IOExceptionpublic int getHolderAuthorizationRole()
throws java.io.IOException
java.io.IOExceptionpublic Flags getHolderAuthorizationRights() throws java.io.IOException
java.io.IOException