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

public Class CertificateHolderAuthorization

extends ASN1Object
Class Inheritance
Imports
java.io.IOException, java.util.Hashtable, org.bouncycastle.asn1.ASN1ApplicationSpecific, .ASN1EncodableVector, .ASN1InputStream, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .DERApplicationSpecific, 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
     DERApplicationSpecific    accessRights,
 }

Field Summary

Modifier and TypeField and Description
pack-priv ASN1ApplicationSpecific
pack-priv static BidirectionalMap
public static final int
public static final int
public static final int
public static final ASN1ObjectIdentifier
public static final int
pack-priv ASN1ObjectIdentifier
public static final int
public static final int
pack-priv static Hashtable<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
public
CertificateHolderAuthorization(ASN1ApplicationSpecific
the DERApplicationSpecific containing the data
aSpe
)

create an Iso7816CertificateHolderAuthorization according to the ASN1ApplicationSpecific

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 a DERApplicationSpecific 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 a DERApplicationSpecific Object
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

accessRightsback to summary
pack-priv ASN1ApplicationSpecific 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
pack-priv ASN1ObjectIdentifier oid
RADG3back to summary
public static final int RADG3
RADG4back to summary
public static final int RADG4
RightsDecodeMapback to summary
pack-priv static Hashtable<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(DERApplicationSpecific aSpe) throws IOException
CertificateHolderAuthorizationback to summary
public CertificateHolderAuthorization(ASN1ApplicationSpecific aSpe) throws IOException

create an Iso7816CertificateHolderAuthorization according to the ASN1ApplicationSpecific

Parameters
aSpe:ASN1ApplicationSpecific

the DERApplicationSpecific 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 a DERApplicationSpecific 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(ASN1InputStream cha) throws IOException
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 a DERApplicationSpecific Object

Returns:ASN1Primitive

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

a primitive representation of this object.