eu.emi.security.authn.x509.helpers.ns
Class NamespacePolicy

java.lang.Object
  extended by 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

Constructor Summary
NamespacePolicy(String issuer, String subject, boolean permit, String identification)
           
 
Method Summary
 String getIdentification()
           
 String getIssuer()
           
 String getSuject()
           
 boolean isPermit()
           
 boolean isSubjectMatching(X500Principal subject)
          Checks whether the given subject name is matching this policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespacePolicy

public NamespacePolicy(String issuer,
                       String subject,
                       boolean permit,
                       String identification)
Method Detail

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.