Class CertificateHolderAuthorization

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.eac.CertificateHolderAuthorization
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class CertificateHolderAuthorization extends org.bouncycastle.asn1.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
      ASN1TaggedObject            accessRights,
  }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final org.bouncycastle.asn1.ASN1ObjectIdentifier
     
    static final int
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CertificateHolderAuthorization(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, int rights)
    create an Iso7816CertificateHolderAuthorization according to the parameters
    CertificateHolderAuthorization(org.bouncycastle.asn1.ASN1TaggedObject aSpe)
    create an Iso7816CertificateHolderAuthorization according to the ASN1TaggedObject
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    static int
    getFlag(String description)
     
    org.bouncycastle.asn1.ASN1ObjectIdentifier
     
    static String
     
    org.bouncycastle.asn1.ASN1Primitive
    return the Certificate Holder Authorization as an ASN1TaggedObject

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CertificateHolderAuthorization

      public CertificateHolderAuthorization(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, int rights) throws 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:
      IOException
    • CertificateHolderAuthorization

      public CertificateHolderAuthorization(org.bouncycastle.asn1.ASN1TaggedObject aSpe) throws IOException
      create an Iso7816CertificateHolderAuthorization according to the ASN1TaggedObject
      Parameters:
      aSpe - the ASN1TaggedObject containing the data
      Throws:
      IOException
  • Method Details

    • getRoleDescription

      public static String getRoleDescription(int i)
    • getFlag

      public static int getFlag(String description)
    • getAccessRights

      public int getAccessRights()
      Returns:
      containing the access rights
    • getOid

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getOid()
      Returns:
      the Object identifier
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      return the Certificate Holder Authorization as an ASN1TaggedObject
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object