Top Description Fields Constructors Methods
org.bouncycastle.asn1.eac

public Class CertificateHolderAuthorization

extends ASN1Object
Class Inheritance
Imports
java.io.IOException, java.util.HashMap, .Map, org.bouncycastle.asn1.ASN1Object, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERTags, .DERSequence, org.bouncycastle.util.Integers

an Iso7816CertificateHolderAuthorization structure.
 Certificate Holder Authorization ::= SEQUENCE {
     // specifies the format and the rules for the evaluation of the authorization
     // level
     ASN1ObjectIdentifier        oid,
     // access rights
     ASN1TaggedObject            accessRights,
 }

Field Summary

Modifier and TypeField and Description
private byte
pack-priv static BidirectionalMap
public static final int
public static final int
public static final int
public static final ASN1ObjectIdentifier
public static final int
private ASN1ObjectIdentifier
public static final int
public static final int
pack-priv static Map<K, V>

Constructor Summary

AccessConstructor and Description
public
CertificateHolderAuthorization(ASN1ObjectIdentifier
Object Identifier : specifies the format and the rules for the evaluatioin of the authorization level.
oid
,
int
specifies the access rights
rights
)

create an Iso7816CertificateHolderAuthorization according to the parameters

public
CertificateHolderAuthorization(ASN1TaggedObject
the ASN1TaggedObject containing the data
aSpe
)

create an Iso7816CertificateHolderAuthorization according to the ASN1TaggedObject

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

containing the access rights
getAccessRights
()

public static int
getFlag(String description)

public ASN1ObjectIdentifier

Returns:

the Object identifier
getOid
()

public static String
private void
setAccessRights(byte
byte containing the rights.
rights
)

create an ASN1TaggedObject and set the access rights to "rights"

private void
setOid(ASN1ObjectIdentifier
ASN1ObjectIdentifier containing the Object Identifier
oid
)

set the Object Identifier

private void
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

return the Certificate Holder Authorization as an ASN1TaggedObject

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

accessRightsback to summary
private byte accessRights
AuthorizationRoleback to summary
pack-priv static BidirectionalMap AuthorizationRole
CVCAback to summary
public static final int CVCA
DV_DOMESTICback to summary
public static final int DV_DOMESTIC
DV_FOREIGNback to summary
public static final int DV_FOREIGN
id_role_EACback to summary
public static final ASN1ObjectIdentifier id_role_EAC
ISback to summary
public static final int IS
oidback to summary
private ASN1ObjectIdentifier oid
RADG3back to summary
public static final int RADG3
RADG4back to summary
public static final int RADG4
RightsDecodeMapback to summary
pack-priv static Map<K, V> RightsDecodeMap

Constructor Detail

CertificateHolderAuthorizationback to summary
public CertificateHolderAuthorization(ASN1ObjectIdentifier oid, int rights) throws IOException

create an Iso7816CertificateHolderAuthorization according to the parameters

Parameters
oid:ASN1ObjectIdentifier

Object Identifier : specifies the format and the rules for the evaluatioin of the authorization level.

rights:int

specifies the access rights

CertificateHolderAuthorizationback to summary
public CertificateHolderAuthorization(ASN1TaggedObject aSpe) throws IOException

create an Iso7816CertificateHolderAuthorization according to the ASN1TaggedObject

Parameters
aSpe:ASN1TaggedObject

the ASN1TaggedObject containing the data

Method Detail

getAccessRightsback to summary
public int getAccessRights()
Returns:int

containing the access rights

getFlagback to summary
public static int getFlag(String description)
getOidback to summary
public ASN1ObjectIdentifier getOid()
Returns:ASN1ObjectIdentifier

the Object identifier

getRoleDescriptionback to summary
public static String getRoleDescription(int i)
setAccessRightsback to summary
private void setAccessRights(byte rights)

create an ASN1TaggedObject and set the access rights to "rights"

Parameters
rights:byte

byte containing the rights.

setOidback to summary
private void setOid(ASN1ObjectIdentifier oid)

set the Object Identifier

Parameters
oid:ASN1ObjectIdentifier

ASN1ObjectIdentifier containing the Object Identifier

setPrivateDataback to summary
private void setPrivateData(ASN1Sequence seq)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

return the Certificate Holder Authorization as an ASN1TaggedObject

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.