Class CertificateHolderAuthorization

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class CertificateHolderAuthorization
    extends 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
          DERApplicationSpecific    accessRights,
      }
     
    • Constructor Detail

      • CertificateHolderAuthorization

        public CertificateHolderAuthorization​(ASN1ObjectIdentifier oid,
                                              int rights)
                                       throws java.io.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:
        java.io.IOException
      • CertificateHolderAuthorization

        public CertificateHolderAuthorization​(ASN1ApplicationSpecific aSpe)
                                       throws java.io.IOException
        create an Iso7816CertificateHolderAuthorization according to the ASN1ApplicationSpecific
        Parameters:
        aSpe - the DERApplicationSpecific containing the data
        Throws:
        java.io.IOException
    • Method Detail

      • getRoleDescription

        public static java.lang.String getRoleDescription​(int i)
      • getFlag

        public static int getFlag​(java.lang.String description)
      • getAccessRights

        public int getAccessRights()
        Returns:
        containing the access rights