Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Org.eclipse.higgins.idas.client"
(New page: {{#eclipseproject:technology.higgins|eclipse_custom_style.css}} right This page describes the '''higgins.idas.client''' component (IdAS Client), which ...) |
|||
Line 2: | Line 2: | ||
[[Image:Higgins_logo_76Wx100H.jpg|right]] | [[Image:Higgins_logo_76Wx100H.jpg|right]] | ||
− | This page describes the '''higgins.idas.client''' component (IdAS Client), which is the client-side counterpart to the [[Org.eclipse.higgins.idas.proxy|IdAS Proxy]]. Its purpose to make available the full functionality of the [[IdAS Package]] (including the [[IdAS API]], the [[Org.eclipse.higgins.idas.udi|UDI Resolver]] and a set of [[Context Provider]]s) to a thin client which cannot all run these components by itself. | + | This page describes the '''higgins.idas.client''' component (IdAS Client), which is the client-side counterpart to the [[Org.eclipse.higgins.idas.proxy|IdAS Proxy]]. Its purpose is to make available the full functionality of the [[IdAS Package]] (including the [[IdAS API]], the [[Org.eclipse.higgins.idas.udi|UDI Resolver]] and a set of [[Context Provider]]s) to a thin client which cannot all run these components by itself. |
The basic concept is that the IdAS Client exposes the APIs of the IdAS Package, but instead of executing IdAS operations by itself, it forwards those operations to the [[Org.eclipse.higgins.idas.proxy|IdAS Proxy]] running on a server. | The basic concept is that the IdAS Client exposes the APIs of the IdAS Package, but instead of executing IdAS operations by itself, it forwards those operations to the [[Org.eclipse.higgins.idas.proxy|IdAS Proxy]] running on a server. |
Latest revision as of 14:16, 29 August 2009
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
This page describes the higgins.idas.client component (IdAS Client), which is the client-side counterpart to the IdAS Proxy. Its purpose is to make available the full functionality of the IdAS Package (including the IdAS API, the UDI Resolver and a set of Context Providers) to a thin client which cannot all run these components by itself.
The basic concept is that the IdAS Client exposes the APIs of the IdAS Package, but instead of executing IdAS operations by itself, it forwards those operations to the IdAS Proxy running on a server.
The IdAS Client uses the XDI Context Provider for talking to the Attribute Service, which is dynamically instantiated by the IdAS Proxy.
Contents
Javadoc
- Javadoc: Javadoc
Service
XDI Messages are used by a client to communicate both with the IdAS Proxy and the Attribute Service. Please refer to the pages of those components for more details.
Example Use
The following example code demonstrates how the IdAS Client can resolve a UDI and read attribute values from an LDAP Context with the help of the IdAS Proxy:
IdASClient client = IdASClient.getInstance(); client.setIdasProxyEndpoint("http://localhost:7080/org.eclipse.higgins.idas.proxy/"); IEntity entity = client.resolveEntity("=udidemo*contexts/(+ldap)//uid%3Dsaba,dc%3Dparityinc,dc%3Dnet", "urn:udi:authnmaterials:1.0:usernamePassword", "cn%3DManager%2Cdc%3Dparityinc%2Cdc%3Dnet oep72eh14"); Iterator attributes = entity.getAttributes(); while (attributes.hasNext()) { IAttribute attribute = (IAttribute) attributes.next(); System.out.println(attribute.getAttrID().toString()); Iterator values = attribute.getValues(); while (values.hasNext()) { IAttributeValue value = (IAttributeValue) values.next(); if (value instanceof ISimpleAttrValue) { System.out.println(" " + ((ISimpleAttrValue) value).getData()); if (((ISimpleAttrValue) value).getData().equals("Old Value")) { ((ISimpleAttrValue) value).setData("New Value"); entity.getContext().applyUpdates(); } } else { System.out.println(" " + "(complex value"); } } }
See Also
- [[1]] - Universal Data Identifiers
- Identity Attribute Service --overview of IdAS
- Components: IdAS Component --lists IdAS Component sub-projects and as well as projects for available Context Providers