|
Project Aristotle - ArisID Attribute Services | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openliberty.arisid.DigitalSubject
public class DigitalSubject
A DigitalSubject is the basic holder of attributes, predicates, and roles representing an Identity. A DigitalSubject is provided as retrieved Subject entity from an Attribute Authority. A DigitalSubject may be ANY addressable entity in an network. Some examples are: persons, servers, applications.
Constructor Summary | |
---|---|
DigitalSubject(IPrincipalIdentifier nameId,
java.lang.String interName,
java.lang.Exception error)
|
|
DigitalSubject(IPrincipalIdentifier nameId,
java.lang.String interName,
IAttributeValue[] attrs,
PredicateValue[] predicates,
java.lang.String[] roles)
|
|
DigitalSubject(IPrincipalIdentifier nameId,
java.lang.String interName,
java.util.Set<IAttributeValue> attrs,
java.util.Set<PredicateValue> predicates,
java.util.Set<java.lang.String> roles)
|
Method Summary | |
---|---|
boolean |
compare(IDigitalSubject subj)
Compares the digital subjects to see if the contents are a match. |
IAttributeValue |
getAttributeValue(java.lang.String name)
Returns the IAttributeValue containing the values for the request
Attribute as identified by its name identifier. |
java.util.Map<java.lang.String,IAttributeValue> |
getAttrVals()
A Map containing any requested IAttributeValue objects. |
java.lang.Exception |
getError()
Returns an Exception or null depending on whether there was an error returning the subject. |
java.lang.String |
getInteractionName()
|
IMultiContextIdentifier |
getMultiContextIdentifier()
If the subject is made from multiple attribute authorities, it will have a IMultiContextIdentifier. |
java.util.Map<java.lang.String,PredicateValue> |
getPredicateValues()
|
IPrincipalIdentifier |
getPrincipalIdentifier()
Returns the IPrincipalIdentifier (a subclass of java.security.Principal) for the subject. |
java.util.Set<java.lang.String> |
getRoles()
|
java.lang.String |
getSubjectName()
Returns a String representation of the subject identifier. |
boolean |
hasRole(java.lang.String role)
|
boolean |
isError()
Returns whether there was an error returning this subject. |
boolean |
isMultiContext()
Returns whether this IDigitalSubject is based on multiple contexts. |
java.lang.Boolean |
isPredicateTrue(java.lang.String name)
Returns whether a particular predicate condition is true. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DigitalSubject(IPrincipalIdentifier nameId, java.lang.String interName, IAttributeValue[] attrs, PredicateValue[] predicates, java.lang.String[] roles)
public DigitalSubject(IPrincipalIdentifier nameId, java.lang.String interName, java.util.Set<IAttributeValue> attrs, java.util.Set<PredicateValue> predicates, java.util.Set<java.lang.String> roles)
public DigitalSubject(IPrincipalIdentifier nameId, java.lang.String interName, java.lang.Exception error)
Method Detail |
---|
public java.util.Map<java.lang.String,IAttributeValue> getAttrVals()
IDigitalSubject
IAttributeValue
objects. Note an
AttributeValue may contain a value or an error.
getAttrVals
in interface IDigitalSubject
public IAttributeValue getAttributeValue(java.lang.String name)
IDigitalSubject
IAttributeValue
containing the values for the request
Attribute as identified by its name identifier.
getAttributeValue
in interface IDigitalSubject
name
- The name identifier for the attribute request.
IAttributeValue
containing the values for the requested
attribute name identifier.public java.lang.String getSubjectName()
IDigitalSubject
IPrincipalIdentifier.getName()
.
getSubjectName
in interface IDigitalSubject
public IPrincipalIdentifier getPrincipalIdentifier()
IDigitalSubject
getPrincipalIdentifier
in interface IDigitalSubject
public IMultiContextIdentifier getMultiContextIdentifier()
IDigitalSubject
getMultiContextIdentifier
in interface IDigitalSubject
public boolean isMultiContext()
IDigitalSubject
isMultiContext
in interface IDigitalSubject
public java.lang.String getInteractionName()
public boolean isError()
IDigitalSubject
isError
in interface IDigitalSubject
public java.lang.Exception getError()
IDigitalSubject
getError
in interface IDigitalSubject
public java.lang.Boolean isPredicateTrue(java.lang.String name)
IDigitalSubject
isPredicateTrue
in interface IDigitalSubject
name
- The name id of a predicate.
public java.util.Map<java.lang.String,PredicateValue> getPredicateValues()
getPredicateValues
in interface IDigitalSubject
public boolean hasRole(java.lang.String role)
hasRole
in interface IDigitalSubject
role
- The name id of the role to be returned.
public java.util.Set<java.lang.String> getRoles()
getRoles
in interface IDigitalSubject
public boolean compare(IDigitalSubject subj)
IDigitalSubject
compare
in interface IDigitalSubject
subj
- The DigitalSubject to be compared.
public java.lang.String toString()
toString
in class java.lang.Object
|
OpenLiberty.org - Licensed under Apache APL 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |