Ejemplo n.º 1
0
 /**
  * return a bits field coded on one byte. For signification of the several bit see
  * Iso7816CertificateHolderAuthorization
  *
  * @return role and access rigth
  * @throws IOException
  * @see CertificateHolderAuthorization
  */
 public int getRole() throws IOException {
   CertificateHolderAuthorization cha = certificateBody.getCertificateHolderAuthorization();
   return cha.getAccessRights();
 }
Ejemplo n.º 2
0
 /** @return the Holder authorization and role (CVCA, DV, IS). */
 public ASN1ObjectIdentifier getHolderAuthorization() throws IOException {
   CertificateHolderAuthorization cha = certificateBody.getCertificateHolderAuthorization();
   return cha.getOid();
 }