Package org.bouncycastle.asn1.eac
Class CertificateHolderAuthorization
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.eac.CertificateHolderAuthorization
-
- All Implemented Interfaces:
ASN1Encodable,Encodable
public class CertificateHolderAuthorization extends ASN1Object
an Iso7816CertificateHolderAuthorization structure.Certificate Holder Authorization ::= SEQUENCE { // specifies the format and the rules for the evaluation of the authorization // level ASN1ObjectIdentifier oid, // access rights DERApplicationSpecific accessRights, }
-
-
Field Summary
Fields Modifier and Type Field Description static intCVCAstatic intDV_DOMESTICstatic intDV_FOREIGNstatic ASN1ObjectIdentifierid_role_EACstatic intISstatic intRADG3static intRADG4
-
Constructor Summary
Constructors Constructor Description CertificateHolderAuthorization(ASN1ApplicationSpecific aSpe)create an Iso7816CertificateHolderAuthorization according to theASN1ApplicationSpecificCertificateHolderAuthorization(ASN1ObjectIdentifier oid, int rights)create an Iso7816CertificateHolderAuthorization according to the parameters
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAccessRights()static intgetFlag(java.lang.String description)ASN1ObjectIdentifiergetOid()static java.lang.StringgetRoleDescription(int i)ASN1PrimitivetoASN1Primitive()return the Certificate Holder Authorization as a DERApplicationSpecific Object-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Field Detail
-
id_role_EAC
public static final ASN1ObjectIdentifier id_role_EAC
-
CVCA
public static final int CVCA
- See Also:
- Constant Field Values
-
DV_DOMESTIC
public static final int DV_DOMESTIC
- See Also:
- Constant Field Values
-
DV_FOREIGN
public static final int DV_FOREIGN
- See Also:
- Constant Field Values
-
IS
public static final int IS
- See Also:
- Constant Field Values
-
RADG4
public static final int RADG4
- See Also:
- Constant Field Values
-
RADG3
public static final int RADG3
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CertificateHolderAuthorization
public CertificateHolderAuthorization(ASN1ObjectIdentifier oid, int rights) throws java.io.IOException
create an Iso7816CertificateHolderAuthorization according to the parameters- Parameters:
oid- Object Identifier : specifies the format and the rules for the evaluatioin of the authorization level.rights- specifies the access rights- Throws:
java.io.IOException
-
CertificateHolderAuthorization
public CertificateHolderAuthorization(ASN1ApplicationSpecific aSpe) throws java.io.IOException
create an Iso7816CertificateHolderAuthorization according to theASN1ApplicationSpecific- Parameters:
aSpe- the DERApplicationSpecific containing the data- Throws:
java.io.IOException
-
-
Method Detail
-
getRoleDescription
public static java.lang.String getRoleDescription(int i)
-
getFlag
public static int getFlag(java.lang.String description)
-
getAccessRights
public int getAccessRights()
- Returns:
- containing the access rights
-
getOid
public ASN1ObjectIdentifier getOid()
- Returns:
- the Object identifier
-
toASN1Primitive
public ASN1Primitive toASN1Primitive()
return the Certificate Holder Authorization as a DERApplicationSpecific Object- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-
-