eu.emi.security.authn.x509.helpers.ns
Class NamespacePolicy
java.lang.Object
eu.emi.security.authn.x509.helpers.ns.NamespacePolicy
public class NamespacePolicy
- extends Object
Represents a namespace policy, i.e. defines which subject DNs are permitted or denied for an issuer.
- Author:
- K. Benedyczak
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespacePolicy
public NamespacePolicy(String issuer,
String subject,
boolean permit,
String identification)
getIssuer
public String getIssuer()
- Returns:
- the issuer
getSuject
public String getSuject()
- Returns:
- the subject
isPermit
public boolean isPermit()
- Returns:
- whether the policy is permit or deny
getIdentification
public String getIdentification()
- Returns:
- the identification
isSubjectMatching
public boolean isSubjectMatching(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
Copyright © 2012 European Middleware Initiative. All Rights Reserved.