Interface NamespacePolicy
-
- All Known Implementing Classes:
OpensslNamespacePolicyImpl
public interface NamespacePolicy
Represents a namespace policy, i.e. defines which subject DNs are permitted or denied for an issuer.- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDefinedFor()
java.lang.String
getIdentification()
java.lang.String
getIssuer()
boolean
isPermit()
boolean
isSubjectMatching(javax.security.auth.x500.X500Principal subject)
Checks whether the given subject name is matching this policy.
-
-
-
Method Detail
-
getIssuer
java.lang.String getIssuer()
- Returns:
- the issuer
-
isPermit
boolean isPermit()
- Returns:
- whether the policy is permit or deny
-
getIdentification
java.lang.String getIdentification()
- Returns:
- the identification
-
getDefinedFor
java.lang.String getDefinedFor()
- Returns:
- hash of the CA where the policy is defined. It can be the
getIssuer()
hash or it may be its parent CA subject name hash, if the namespace was defined in its namespaces file.
-
isSubjectMatching
boolean isSubjectMatching(javax.security.auth.x500.X500Principal subject)
Checks whether the given subject name is matching this policy.- Parameters:
subject
- to be checked- Returns:
- true if subject is matched, false otherwise
-
-