Package org.bouncycastle.asn1.eac
Class CertificateHolderAuthorization
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.eac.CertificateHolderAuthorization
- All Implemented Interfaces:
ASN1Encodable
,Encodable
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
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final ASN1ObjectIdentifier
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptioncreate an Iso7816CertificateHolderAuthorization according to theASN1ApplicationSpecific
CertificateHolderAuthorization
(ASN1ObjectIdentifier oid, int rights) create an Iso7816CertificateHolderAuthorization according to the parameters -
Method Summary
Modifier and TypeMethodDescriptionint
static int
getOid()
static String
getRoleDescription
(int i) return the Certificate Holder Authorization as a DERApplicationSpecific ObjectMethods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
id_role_EAC
-
CVCA
public static final int CVCA- See Also:
-
DV_DOMESTIC
public static final int DV_DOMESTIC- See Also:
-
DV_FOREIGN
public static final int DV_FOREIGN- See Also:
-
IS
public static final int IS- See Also:
-
RADG4
public static final int RADG4- See Also:
-
RADG3
public static final int RADG3- See Also:
-
-
Constructor Details
-
CertificateHolderAuthorization
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:
IOException
-
CertificateHolderAuthorization
- Throws:
IOException
-
CertificateHolderAuthorization
create an Iso7816CertificateHolderAuthorization according to theASN1ApplicationSpecific
- Parameters:
aSpe
- the DERApplicationSpecific containing the data- Throws:
IOException
-
-
Method Details
-
getRoleDescription
-
getFlag
-
getAccessRights
public int getAccessRights()- Returns:
- containing the access rights
-
getOid
- Returns:
- the Object identifier
-
toASN1Primitive
return the Certificate Holder Authorization as a DERApplicationSpecific Object- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-