Class AttributeCertificateAuthorityValidator

java.lang.Object
br.ufsc.labsec.signature.attrcert.AttributeCertificateAuthorityValidator

public class AttributeCertificateAuthorityValidator
extends Object
  • Constructor Details

    • AttributeCertificateAuthorityValidator

      public AttributeCertificateAuthorityValidator​(Database database)
  • Method Details

    • getDatabase

      public Database getDatabase()
    • addAuthorityOid

      public void addAuthorityOid​(String cnpj, Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> oids) throws DatabaseException
      Throws:
      DatabaseException
    • addAuthorityOid

      public void addAuthorityOid​(Object certificate, Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> oids) throws DatabaseException
      Throws:
      DatabaseException
    • removeAuthorityOid

      public void removeAuthorityOid​(String cnpj)
    • removeAuthorityOid

      public void removeAuthorityOid​(String cnpj, String oid)
    • removeAuthorityOid

      public void removeAuthorityOid​(Object certificate)
    • removeAuthorityOid

      public void removeAuthorityOid​(Object certificate, String oid)
    • getAuthorityOids

      public Set<org.bouncycastle.asn1.ASN1ObjectIdentifier> getAuthorityOids​(String cnpj)
    • getAuthorityOids

      public Map<String,​Set<org.bouncycastle.asn1.ASN1ObjectIdentifier>> getAuthorityOids()
    • updateAuthorityOids

      public void updateAuthorityOids​(String cnpj, Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> oids)
    • updateAuthorityOids

      public void updateAuthorityOids​(X509Certificate certificate, Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> oids)
    • isAttributeAllowed

      public boolean isAttributeAllowed​(String cnpj, org.bouncycastle.asn1.ASN1ObjectIdentifier oid)