|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.rt.credential.DomainSpecification | +--edu.stanford.rt.credential.CredentialDomain
Credential
element. Only one CredentialDomain object is associated with each Credential
object.Field Summary | |
private org.w3c.dom.Element |
credentialElement
the XML Element of the associated Credential. |
private Principal |
issuer
Issuer of the associated Credential. |
private java.util.HashMap |
principals
maps String (principal shortName) to Principal object |
private java.util.ArrayList |
roleDefinitions
list of role defined in this credential. |
private ValidityTime |
validityTime
validity time of the associated Credential. |
Fields inherited from class edu.stanford.rt.credential.DomainSpecification |
|
Constructor Summary | |
CredentialDomain(org.w3c.dom.Element credentialElement,
RTContext rtContext)
Constructor for CredentialDomain. |
Method Summary | |
void |
addPrincipal(java.lang.String shortName,
Principal principal)
Method addPrincipal. |
void |
addRoleDefinition(RoleDefinition roleDefinition)
Add a new role definition. |
Principal |
getIssuer()
Returns the issuer. |
Principal |
getPrincipal(java.lang.String shortName)
Method getPrincipal. |
ValidityTime |
getValidityTime()
Returns the validityTime. |
RoleDeclaration |
lookupRoleDeclaration(java.lang.String roleName)
Method lookupRoleDeclaration. |
DataType |
lookupType(java.lang.String typeName)
Method lookupType. |
java.util.Iterator |
roleDefinitionIterator()
Method roleDefinitionIterator. |
void |
setHashID(HashID hashID)
Sets the hashID. |
void |
setIssuer(Principal issuer)
Method setIssuer. |
void |
setValidityTime(ValidityTime validityTime)
Method setValidityTime. |
java.lang.String |
toString(java.lang.String indent)
Method toString. |
Methods inherited from class edu.stanford.rt.credential.DomainSpecification |
addRole, addType, addType, getContext, getHashID, getImportedDomains, getPrincipalType, getRoleDeclarations, getTypeDeclarations, importDomain, isComplete, lookupImportedDomain, lookupRoleDeclaration, lookupType, setComplete, setPrincipalType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Principal issuer
private ValidityTime validityTime
private java.util.HashMap principals
private java.util.ArrayList roleDefinitions
private org.w3c.dom.Element credentialElement
Constructor Detail |
public CredentialDomain(org.w3c.dom.Element credentialElement, RTContext rtContext) throws DomainSpecException
Method Detail |
public void addPrincipal(java.lang.String shortName, Principal principal) throws DomainSpecException
shortName
- principal
-
DomainSpecException
public Principal getPrincipal(java.lang.String shortName)
shortName
-
public void setIssuer(Principal issuer)
issuer
- public Principal getIssuer()
public ValidityTime getValidityTime()
public void setValidityTime(ValidityTime validityTime)
validityTime
- public java.lang.String toString(java.lang.String indent)
indent
-
public void setHashID(HashID hashID) throws DomainSpecException
DomainSpecification
setHashID
in class DomainSpecification
hashID
- The hashID to set
DomainSpecException
public java.util.Iterator roleDefinitionIterator()
public void addRoleDefinition(RoleDefinition roleDefinition)
roleDefinition
- The roleDefinition to setpublic DataType lookupType(java.lang.String typeName) throws DomainSpecException
lookupType
in class DomainSpecification
typeName
-
DomainSpecException
- if cannot find a DataType declaration by the given name.public RoleDeclaration lookupRoleDeclaration(java.lang.String roleName) throws DomainSpecException
lookupRoleDeclaration
in class DomainSpecification
roleName
-
DomainSpecException
- if cannot find one.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |