|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.rt.credential.RTContext | +--edu.stanford.rt.credential.CredentialStore
CredentialDomain
, and
RoleDefinition
index information.
A special principal is stored in the credential store to ....
Field Summary | |
private java.util.HashMap |
credentialDomains
A map of CredentialDomain objects. |
private java.util.HashMap |
indexByIssuer
Role definitions indexed by issuer. |
private java.util.HashMap |
indexByIssuerAndRoleDeclaration
Role definitions indexed by issuer and role declaration. |
private java.util.HashSet |
roleDefinitions
A set of RoleDefinition objects, including all
roles defined in the Credential included in this
CredentialStore . |
private Principal |
specialPrincipal
|
Fields inherited from class edu.stanford.rt.credential.RTContext |
|
Constructor Summary | |
CredentialStore(RTParser rtParser)
Constructor for CredentialStore. |
Method Summary | |
void |
addCredentialDomain(HashID id,
CredentialDomain credentialDomain)
Method addCredentialDomain. |
private void |
addIndexByIssuer(RoleDefinition roleDefinition)
Method addIndexByIssuer. |
private void |
addIndexByIssuerAndRoleDeclaration(RoleDefinition roleDefinition)
Method addIndexByIssuerAndRoleDeclaration. |
private void |
addRoleDefinition(RoleDefinition roleDefinition)
Adds a new role definition to the roleDefinitions. |
CredentialDomain |
getCredentialDomain(HashID id)
Method getCredentialDomain. |
CredentialDomain |
getCredentialDomain(java.lang.String id)
Method getCredentialDomain. |
java.util.ArrayList |
getIndexByIssuer(Principal issuer)
Method getIndexByIssuer. |
java.util.ArrayList |
getIndexByIssuerAndRoleDeclaration(IssuerAndRoleDeclaration issuerAndRoleDeclaration)
Method getIndexByIssuerAndRoleDeclaration. |
Principal |
getSpecialPrincipal()
Returns the specialPrincipal. |
java.util.Iterator |
roleDefinitionIterator()
Method roleDefinitionIterator. |
void |
setSpecialPrincipal(Principal specialPrincipal)
Sets the specialPrincipal. |
java.lang.String |
toString(java.lang.String indent)
|
Methods inherited from class edu.stanford.rt.credential.RTContext |
addApplicationDomain, addPrincipal, getApplicationDomain, getApplicationDomain, getPrincipal, getSystemDomain, hasDomainWithID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Principal specialPrincipal
private java.util.HashMap credentialDomains
CredentialDomain
objects. A CredentialDomain
contains all the info about a Credential
.HashID
CredentialDomain
private java.util.HashSet roleDefinitions
RoleDefinition
objects, including all
roles defined in the Credential
included in this
CredentialStore
.
private java.util.HashMap indexByIssuer
Principal
: the issuer RoleDefinition
.
private java.util.HashMap indexByIssuerAndRoleDeclaration
IssuerAndRoleDeclaration
RoleDefinition
Constructor Detail |
public CredentialStore(RTParser rtParser) throws java.lang.Exception
Method Detail |
public Principal getSpecialPrincipal()
public void setSpecialPrincipal(Principal specialPrincipal)
specialPrincipal
- The specialPrincipal to setpublic CredentialDomain getCredentialDomain(HashID id)
id
-
public CredentialDomain getCredentialDomain(java.lang.String id)
id
-
public java.util.Iterator roleDefinitionIterator()
public java.util.ArrayList getIndexByIssuer(Principal issuer)
issuer
-
public java.util.ArrayList getIndexByIssuerAndRoleDeclaration(IssuerAndRoleDeclaration issuerAndRoleDeclaration)
issuerAndRoleDeclaration
-
public void addCredentialDomain(HashID id, CredentialDomain credentialDomain) throws DomainSpecException
id
- credentialDomain
-
DomainSpecException
private void addRoleDefinition(RoleDefinition roleDefinition) throws DomainSpecException
roleDefinition
- The roleDefinition to set
DomainSpecException
private void addIndexByIssuer(RoleDefinition roleDefinition)
roleDefinition
- private void addIndexByIssuerAndRoleDeclaration(RoleDefinition roleDefinition)
roleDefinition
- public java.lang.String toString(java.lang.String indent)
toString
in class RTContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |