|
Project Aristotle - ArisID Attribute Services | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openliberty.arisid.ArisIdService
public class ArisIdService
The IGF Attribute Services API (aka CARML-API) is a set of library functions
combined with providers (e.g. Higgins IdAS) which may be used to retrieve
Identity Subjects (DigitalSubject) that contain collections of attributes
from the Attribute Service. The API can be initialized by consuming a CARML
file or by explicit use of setters or getters on a Interaction
object
in the case of a bean representation of a CARML interaction.
The ArisIdService supports the use of Subject
objects defined by
authentication and policy systems (JAAS, webgates, or other Application
Server security components) and allows applications to obtain more
information about subjects. The ArisIdService API also allows applications
to modify identity attributes as well as retrieve them. By using the API,
developers are now longer concerned about how or should information is
stored, instead, it is handled by a set of services and policies that can be
configured at application run time, rather than being restricted to a
specific and non-flexible "silo" at development time.
The attribute service abstracts the nature of specific systems and protocols
so that the developer can have a consistent model for representing data from
these systems and have a simple interface for obtaining and updating
identity-related data. The attribute service also provides identity-related
policy and consent enforcement ensuring confidentiality and security of
personal information.
Each ArisIdService object is associated with a single CARML declaration
and a single Attribute Services Stack Provider (IAttrSvcStack
).
Method Summary | |
---|---|
void |
close()
Method to close the attribute service. |
CarmlDoc |
getCarmlDoc()
Returns the applications CarmlDoc object. |
IInteraction |
getInteraction(java.lang.String name)
|
static java.util.Set<IPrincipalIdentifier> |
getPrincipalIdentifierFromSubject(javax.security.auth.Subject user)
Utility to parse a java.security.Subject object for the presence of IPrincipalIdentifier s. |
SchemaManager |
getSchemaManager()
Returns the schema object for managing and accessing CARML declarations. |
void |
initialize()
Initializes the attribute service and freezes the CARML declaration. |
boolean |
isInitialized()
If the ArisIdService instance was created without pre-declaring a CARML document, then the service will not be initialized until initialize() is called. |
org.w3c.dom.Document |
toCarmlDocument()
|
java.lang.String |
toCarmlString()
|
void |
toFile(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Set<IPrincipalIdentifier> getPrincipalIdentifierFromSubject(javax.security.auth.Subject user)
IPrincipalIdentifier
s. Typically if a Subject has been
authenticated by IGF Attribute Services stack, then the
IPrincipalIdentifier should be set.
user
- The user Subject to be parsed for Principal Identifier
information
public SchemaManager getSchemaManager()
SchemaManager
object contained the defined CARML schemapublic CarmlDoc getCarmlDoc()
getExternalCarmlDoc(URI)
method.
public IInteraction getInteraction(java.lang.String name)
name
- The name of the interaction to return.
public java.lang.String toCarmlString() throws IGFException
IGFException
public org.w3c.dom.Document toCarmlDocument()
public void toFile(java.lang.String filename) throws IGFException
IGFException
public void initialize() throws AttrSvcInitializedException, AuthenticationException, NoSuchContextException, NoSuchSubjectException, SubjectNotUniqueException, IGFException
IAttrSvcStack.register(Subject, ArisIdService)
to register the
ArisIdService with the stack provider.
AttrSvcInitializedException
- if ArisIdService has already been initialized.
IGFException
SubjectNotUniqueException
- if the Application Subject credential could not be uniquely
mapped.
NoSuchSubjectException
- if the Application Subject credential could not be found.
NoSuchContextException
- if the Application Subject could not be mapped to an
authoritative context.
AuthenticationException
- if the Application Subject was not successfully
authenticated.public void close() throws AttrSvcInitializedException, IGFException
AttrSvcInitializedException
- thrown if the service was never initialized.
IGFException
- thrown if there was a problem within the provider during
shutdown.public boolean isInitialized()
initialize()
is called.
|
OpenLiberty.org - Licensed under Apache APL 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |