|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.PermisTarget
public class PermisTarget
The Permis version of the Target that uses LDAP DNs or URLs. The object also knows what object class it is of, and therefore can be used for performing the target domain match.
Constructor Summary | |
---|---|
protected |
PermisTarget()
|
|
PermisTarget(java.lang.String url)
This constructor builds a Target based on its URL. |
|
PermisTarget(java.lang.String Name,
java.lang.String[] ObjectClasses)
This constructor builds a Target based on a distinguished name and a set of object classes. |
Method Summary | |
---|---|
LDAPDNPrincipal |
getDN()
This method returns the distinguished name of the target. |
java.security.Principal |
getEntryName()
Does the same as getDN(), if the Target has been initialised with LDAP DN; otherwise, returns the Entry for the URL. |
java.lang.String |
getName()
This method returns the LDAP DN of the target as a string e.g. |
java.lang.Object |
getTargetADI()
This method returns Target ADI. |
boolean |
isObjectClass(java.lang.String Class)
This checks to see if this target is of the indicated ObjectClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PermisTarget()
public PermisTarget(java.lang.String Name, java.lang.String[] ObjectClasses) throws RFC2253ParsingException
Name
- a string describing the LDAP distinguished name of the targetObjectClasses
- an array of strings that are the various LDAP
objectclasses that the Target has. These can be represented as user
friendly strings e.g. printer or as an OID string e.g. 1.2.3.4.5.6
If the array is null, the Target is of any class (isObjectClass always
returns true)
RFC2253ParsingException
public PermisTarget(java.lang.String url) throws BadURLException
url
- is the URL of the Target.
BadURLException
CustomisePERMIS#addURLHandler(String), URLHandler#addProtocol(URLHandler)
Method Detail |
---|
public java.lang.String getName()
public LDAPDNPrincipal getDN()
getDN
in interface LDAPEntry
public java.security.Principal getEntryName()
getEntryName
in interface Entry
public boolean isObjectClass(java.lang.String Class)
isObjectClass
in interface LDAPEntry
Class
- the ObjectClass to be tested against
public java.lang.Object getTargetADI()
getTargetADI
in interface Target
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |