public class CVCertificate extends ASN1Object
Certificate ::= SEQUENCE {
CertificateBody Iso7816CertificateBody,
signature DER Application specific
}
| Modifier and Type | Field and Description |
|---|---|
private static int |
bodyValid |
private CertificateBody |
certificateBody |
static String |
ReferenceEncoding |
private byte[] |
signature |
private static int |
signValid |
private int |
valid |
static byte |
version_1 |
| Modifier | Constructor and Description |
|---|---|
|
CVCertificate(ASN1InputStream aIS)
Create an iso7816Certificate structure from an ASN1InputStream.
|
|
CVCertificate(CertificateBody body,
byte[] signature)
Create an iso7816Certificate structure from a body and its signature.
|
private |
CVCertificate(DERApplicationSpecific appSpe)
Create an iso7816Certificate structure from a DERApplicationSpecific.
|
| Modifier and Type | Method and Description |
|---|---|
CertificationAuthorityReference |
getAuthorityReference() |
CertificateBody |
getBody()
Gives the body of the certificate.
|
int |
getCertificateType() |
PackedDate |
getEffectiveDate() |
PackedDate |
getExpirationDate() |
ASN1ObjectIdentifier |
getHolderAuthorization() |
Flags |
getHolderAuthorizationRights() |
int |
getHolderAuthorizationRole() |
CertificateHolderReference |
getHolderReference() |
static CVCertificate |
getInstance(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.
|
private void |
initFrom(ASN1InputStream aIS) |
private void |
setPrivateData(DERApplicationSpecific appSpe)
Sets the values of the certificate (body and signature).
|
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectprivate CertificateBody certificateBody
private byte[] signature
private int valid
private static int bodyValid
private static int signValid
public static final byte version_1
public static String ReferenceEncoding
public CVCertificate(ASN1InputStream aIS) throws IOException
aIS - the byte stream to parse.IOException - if there is a problem parsing the data.private CVCertificate(DERApplicationSpecific appSpe) throws IOException
appSpe - the DERApplicationSpecific object.IOException - if there is a problem parsing the data.public CVCertificate(CertificateBody body, byte[] signature) throws IOException
body - the Iso7816CertificateBody object containing the body.signature - the byte array containing the signatureIOException - if there is a problem parsing the data.private void setPrivateData(DERApplicationSpecific appSpe) throws IOException
appSpe - is a DERApplicationSpecific object containing body and signature.IOException - if tags or value are incorrect.private void initFrom(ASN1InputStream aIS) throws IOException
IOExceptionpublic static CVCertificate getInstance(Object obj)
obj - the Object to extract the certificate from.public byte[] getSignature()
public CertificateBody getBody()
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1ObjectASN1Object.toASN1Primitive()public ASN1ObjectIdentifier getHolderAuthorization() throws IOException
IOExceptionpublic PackedDate getEffectiveDate() throws IOException
IOExceptionpublic int getCertificateType()
public PackedDate getExpirationDate() throws IOException
IOExceptionpublic int getRole() throws IOException
IOExceptionCertificateHolderAuthorizationpublic CertificationAuthorityReference getAuthorityReference() throws IOException
IOExceptionpublic CertificateHolderReference getHolderReference() throws IOException
IOExceptionpublic int getHolderAuthorizationRole() throws IOException
IOExceptionpublic Flags getHolderAuthorizationRights() throws IOException
IOException