|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.SubsetCredentials issrg.pba.rbac.RoleBasedCredentials issrg.pba.rbac.PermisCredentials
public class PermisCredentials
This is the implementation of the credential for a role based scheme with a hierarchy. It combines a roleType and a roleValue. The roleType is a string, and will be the LDAP name of the AC attribute type. The roleValue will be a RoleHierarchyNode (containing the actual role value) and will be the attribute value.
Field Summary |
---|
Fields inherited from class issrg.pba.rbac.RoleBasedCredentials |
---|
roleType |
Constructor Summary | |
---|---|
protected |
PermisCredentials()
|
|
PermisCredentials(RoleHierarchyNode roleValue)
This is the constructor that builds the object by specifying its RoleHierarchyNode (the node that is aware of the hierarchy structure). |
|
PermisCredentials(java.lang.String roleType)
This is the constructor that builds the object by specifying its RoleType (the name, used in the Policy XML). |
Method Summary | |
---|---|
java.lang.Object |
clone()
This method creates a copy of the object. |
boolean |
contains(Credentials c)
This method returns the result of comparing these credentials to the given credentials. |
java.lang.Object |
getRoleValue()
This method returns the attribute value of the Role. |
java.lang.String |
getRoleValueAsString()
This method returns the role value as a String. |
Credentials |
intersection(Credentials what)
This method overrides the inherited intersection method to optimise the intersection of two PermisCredentials, one of which is "ANY VALUE". |
Credentials |
union(Credentials what)
This method overrides the inherited union method to optimise the union of two PermisCredentials, one of which is "ANY VALUE". |
Methods inherited from class issrg.pba.rbac.RoleBasedCredentials |
---|
getRoleType, getRoleValues, newCredentials, toString |
Methods inherited from class issrg.pba.rbac.SubsetCredentials |
---|
equals |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected PermisCredentials()
public PermisCredentials(java.lang.String roleType)
roleType
- is the type of the Rolepublic PermisCredentials(RoleHierarchyNode roleValue)
roleValue
- is the node, representing the value of the Role; cannot
be nullMethod Detail |
---|
public java.lang.String getRoleValueAsString()
public java.lang.Object getRoleValue()
getRoleValueAsString
. In fact, it does the same.
getRoleValue
in interface Role
getRoleValue
in class RoleBasedCredentials
getRoleValueAsString()
public boolean contains(Credentials c)
contains
in interface Credentials
contains
in class RoleBasedCredentials
c
- is the credentials to compare to
SetOfSubsetsCredentials
public Credentials intersection(Credentials what)
intersection
in interface Credentials
intersection
in class SubsetCredentials
what
- is the credential to intersect with
public Credentials union(Credentials what)
union
in interface Credentials
union
in class SubsetCredentials
what
- is the credentials object to join with
public java.lang.Object clone()
clone
in interface Credentials
clone
in class RoleBasedCredentials
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |