eu.emi.security.authn.x509.helpers.ns
Class OpensslNamespacePolicyImpl
java.lang.Object
eu.emi.security.authn.x509.helpers.ns.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpensslNamespacePolicyImpl
public OpensslNamespacePolicyImpl(String issuer,
String subject,
boolean permit,
String identification)
throws IOException
- Throws:
IOException
getIssuer
public String getIssuer()
- Specified by:
getIssuer
in interface NamespacePolicy
- Returns:
- the issuer
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
getIdentification
public String getIdentification()
- Specified by:
getIdentification
in interface NamespacePolicy
- Returns:
- the identification
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
Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.