Class AttributeCertificateAuthorityValidator
java.lang.Object
br.ufsc.labsec.signature.attrcert.AttributeCertificateAuthorityValidator
public class AttributeCertificateAuthorityValidator extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttributeCertificateAuthorityValidator.AttributeNotAllowedException -
Constructor Summary
Constructors Constructor Description AttributeCertificateAuthorityValidator(CertificateRulesDB database) -
Method Summary
Modifier and Type Method Description voidaddAuthorityOid(Object certificate, Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> oids)voidaddAuthorityOid(String cnpj, Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> oids)Map<String,Set<org.bouncycastle.asn1.ASN1ObjectIdentifier>>getAuthorityOids()Set<org.bouncycastle.asn1.ASN1ObjectIdentifier>getAuthorityOids(String cnpj)CertificateRulesDBgetDatabase()booleanisAttributeAllowed(String cnpj, org.bouncycastle.asn1.ASN1ObjectIdentifier oid)voidremoveAuthorityOid(Object certificate)voidremoveAuthorityOid(Object certificate, String oid)voidremoveAuthorityOid(String cnpj)voidremoveAuthorityOid(String cnpj, String oid)voidupdateAuthorityOids(String cnpj, Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> oids)voidupdateAuthorityOids(X509Certificate certificate, Collection<org.bouncycastle.asn1.ASN1ObjectIdentifier> oids)
-
Constructor Details
-
AttributeCertificateAuthorityValidator
-
-
Method Details
-
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
-
removeAuthorityOid
-
removeAuthorityOid
-
removeAuthorityOid
-
getAuthorityOids
-
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
-