public class CertificateHolderAuthorization extends ASN1Object
Certificate Holder Authorization ::= SEQUENCE { // specifies the format and the rules for the evaluation of the authorization // level ASN1ObjectIdentifier oid, // access rights DERApplicationSpecific accessRights, }
Modifier and Type | Field and Description |
---|---|
(package private) DERApplicationSpecific |
accessRights |
(package private) static BidirectionalMap |
AuthorizationRole |
static int |
CVCA |
static int |
DV_DOMESTIC |
static int |
DV_FOREIGN |
static ASN1ObjectIdentifier |
id_role_EAC |
static int |
IS |
(package private) ASN1ObjectIdentifier |
oid |
static int |
RADG3 |
static int |
RADG4 |
(package private) static java.util.Hashtable |
ReverseMap |
(package private) static java.util.Hashtable |
RightsDecodeMap |
Constructor and Description |
---|
CertificateHolderAuthorization(ASN1ObjectIdentifier oid,
int rights)
create an Iso7816CertificateHolderAuthorization according to the parameters
|
CertificateHolderAuthorization(DERApplicationSpecific aSpe)
create an Iso7816CertificateHolderAuthorization according to the
DERApplicationSpecific |
Modifier and Type | Method and Description |
---|---|
int |
getAccessRights() |
static int |
GetFlag(java.lang.String description) |
ASN1ObjectIdentifier |
getOid() |
static java.lang.String |
GetRoleDescription(int i) |
private void |
setAccessRights(byte rights)
create a DERApplicationSpecific and set the access rights to "rights"
|
private void |
setOid(ASN1ObjectIdentifier oid)
set the Object Identifier
|
private void |
setPrivateData(ASN1InputStream cha) |
ASN1Primitive |
toASN1Primitive()
return the Certificate Holder Authorization as a DERApplicationSpecific Object
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
DERApplicationSpecific accessRights
public static final ASN1ObjectIdentifier id_role_EAC
public static final int CVCA
public static final int DV_DOMESTIC
public static final int DV_FOREIGN
public static final int IS
public static final int RADG4
public static final int RADG3
static java.util.Hashtable RightsDecodeMap
static BidirectionalMap AuthorizationRole
static java.util.Hashtable ReverseMap
public CertificateHolderAuthorization(ASN1ObjectIdentifier oid, int rights) throws java.io.IOException
oid
- Object Identifier : specifies the format and the rules for the
evaluatioin of the authorization level.rights
- specifies the access rightsjava.io.IOException
public CertificateHolderAuthorization(DERApplicationSpecific aSpe) throws java.io.IOException
DERApplicationSpecific
aSpe
- the DERApplicationSpecific containing the datajava.io.IOException
public static java.lang.String GetRoleDescription(int i)
public static int GetFlag(java.lang.String description)
private void setPrivateData(ASN1InputStream cha) throws java.io.IOException
java.io.IOException
public int getAccessRights()
private void setAccessRights(byte rights)
rights
- byte containing the rights.public ASN1ObjectIdentifier getOid()
private void setOid(ASN1ObjectIdentifier oid)
oid
- ASN1ObjectIdentifier
containing the Object Identifierpublic ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object