org.openliberty.arisid.stack
Interface IMultiContextIdentifier
- All Superinterfaces:
- IPrincipalIdentifier, java.security.Principal
- All Known Implementing Classes:
- PrincipalIdentifier
public interface IMultiContextIdentifier
- extends IPrincipalIdentifier
Used to hold a unique identifier that can represent a principal in an IGF enabled Attribute Service.
IMutiContextIdentifier holds information on contexts that this principal may be related to.
The identifier is not necessarily universal and may only be relevant for a particular Attribute Service Stack context.
For reporting purposes only, IPrincipalIdentifier can be used to retrieve information about whether the principal is mapped to one or more context providers (an entity that has attributes in multiple contexts).
Methods inherited from interface java.security.Principal |
equals, hashCode, toString |
getRelatedContexts
java.util.Set<java.lang.String> getRelatedContexts()
- Returns:
- a set of ContextId String objects where the Principal is mapped. This method is provided for reporting and diagnostic purposes only.
getPrincipalContextIdentifier
java.lang.String getPrincipalContextIdentifier(java.lang.String contextId)
- Obtains the Principal identifier for a subject in a particular context. This method is provided for reporting and diagnostic purposes only.
- Parameters:
contextId
- A contextId as reported by getRelatedContexts()
where the user is currently mapped to.
- Returns:
- A String representing the PrincipalIdentifier valid within a particular contextId.
getContextMap
java.util.Map<java.lang.String,java.lang.String> getContextMap()