|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.rbac.PermisSubject
public class PermisSubject
The Permis implementation of a subject. It knows the holder and its credentials, it contains additional service for checking the credentials validity. It knows what policy it is applicable to, and works for one PermisRBAC object only.
Field Summary | |
---|---|
protected PBAAPI |
owner
|
protected java.lang.String |
PolicyOID
|
Constructor Summary | |
---|---|
protected |
PermisSubject()
|
protected |
PermisSubject(PBAAPI owner,
java.security.Principal DN,
CredentialsService service,
java.lang.String PolicyOID,
Credentials creds)
This constructor builds a subject from a distinguished name and the credentials the holder possesses. |
Method Summary | |
---|---|
Credentials |
exportCreds()
This method returns the Credentials (roles for the Permis project) of the subject. |
java.security.Principal |
getHolder()
This method returns the distinguished name of the subject. |
java.lang.String |
getName()
This method returns the distinguished name of the subject as a string. |
PBAAPI |
getOwner()
This method returns the owner of the Subject object. |
CredentialsService |
getService()
This method returns the object providing additional service on the set of credentials. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String PolicyOID
protected PBAAPI owner
Constructor Detail |
---|
protected PermisSubject()
protected PermisSubject(PBAAPI owner, java.security.Principal DN, CredentialsService service, java.lang.String PolicyOID, Credentials creds)
owner
- is the reference to the PBA API implementation that has
created this object; so the owner could ensure it uses the
subject for the right policyDN
- the distinguished name of the subjectservice
- is the run-time restriction on use of the credential set
contained within this SubjectpolicyOID
- The OID of the policy controlling the subjectcreds
- the Credential of the subjectMethod Detail |
---|
public Credentials exportCreds()
exportCreds
in interface Subject
public java.security.Principal getHolder()
getHolder
in interface Subject
public java.lang.String getName()
public CredentialsService getService()
getService
in interface Subject
public PBAAPI getOwner()
getOwner
in interface Subject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |