Class OpensslNamespacePolicyImpl

  • All Implemented Interfaces:
    NamespacePolicy

    public class OpensslNamespacePolicyImpl
    extends Object
    implements NamespacePolicy
    Represents a namespace policy, i.e. defines which subject DNs are permitted or denied for an issuer.
    Author:
    K. Benedyczak
    • Method Detail

      • getSuject

        public String getSuject()
        Returns:
        the subject
      • isPermit

        public boolean isPermit()
        Specified by:
        isPermit in interface NamespacePolicy
        Returns:
        whether the policy is permit or deny
      • isSubjectMatching

        public boolean isSubjectMatching​(X500Principal subject)
        Checks whether the given subject name is matching this policy.
        Specified by:
        isSubjectMatching in interface NamespacePolicy
        Parameters:
        subject - to be checked
        Returns:
        true if subject is matched, false otherwise
      • getDefinedFor

        public String getDefinedFor()
        Specified by:
        getDefinedFor in interface NamespacePolicy
        Returns:
        hash of the CA where the policy is defined. It can be the NamespacePolicy.getIssuer() hash or it may be its parent CA subject name hash, if the namespace was defined in its namespaces file.