|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.eac.CVCertificate
public class CVCertificate
an iso7816Certificate structure.
Certificate ::= SEQUENCE { CertificateBody Iso7816CertificateBody, signature DER Application specific }
Field Summary | |
---|---|
static java.lang.String |
ReferenceEncoding
|
static byte |
version_1
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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(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. |
ASN1Primitive |
toASN1Primitive()
|
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
---|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte version_1
public static java.lang.String ReferenceEncoding
Constructor Detail |
---|
public CVCertificate(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 signature
java.io.IOException
- if there is a problem parsing the data.Method Detail |
---|
public static CVCertificate getInstance(java.lang.Object obj)
obj
- the Object to extract the certificate from.
java.io.IOException
- if there is a problem parsing the data.public byte[] getSignature()
public CertificateBody getBody()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
ASN1Object.toASN1Primitive()
public ASN1ObjectIdentifier getHolderAuthorization() throws java.io.IOException
java.io.IOException
public PackedDate getEffectiveDate() throws java.io.IOException
java.io.IOException
public int getCertificateType()
public PackedDate getExpirationDate() throws java.io.IOException
java.io.IOException
public int getRole() throws java.io.IOException
java.io.IOException
CertificateHolderAuthorization
public CertificationAuthorityReference getAuthorityReference() throws java.io.IOException
java.io.IOException
public CertificateHolderReference getHolderReference() throws java.io.IOException
java.io.IOException
public int getHolderAuthorizationRole() throws java.io.IOException
java.io.IOException
public Flags getHolderAuthorizationRights() throws java.io.IOException
java.io.IOException
|
Bouncy Castle Cryptography Library 1.49 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |