public class PersonalProfile extends Object
PersonalProfile
is an implementation of
LibertyDataService
. The default implementation of Personal
Profile leverages the XPATH technology for the queries. Inorder to make
sense for the XPath expressions, the user profile needs to be in XML blob.
The current approach is to parse the select expression, build a container
level XML blob instead of the entire user profile.
A WSC credential may not have enough priveleges to write or read the
user profile data since the policy evaluation is driven through Webservices
POLICY component rather than through ACI driven. So, currently, we use
admin token for both queries and updates, but the authorization check
will be done for a WSC credential.Constructor and Description |
---|
PersonalProfile()
Default constructor for personal profile.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthZAction(Object credential,
String action,
String select,
Map env)
Gets Authorization map for the list of select expressions.
|
String |
getUserDN(String resourceID)
Gets the user dn for a specified resource id.
|
boolean |
isResourceIDValid(String resourceID)
Checks if the resource id is valid.
|
boolean |
isSelectDataSupported(String select)
Checks if the select data is supported by the PP service.
|
boolean |
modifyData(Object credential,
String resourceID,
List dstModifications,
Map interactedData,
Document request)
Processes modify request and update new data.
|
Map |
queryData(Object credential,
String resourceID,
List dstQueryItems,
Map interactedData,
Document request)
Queries for the data for a specific resourceID.
|
public PersonalProfile()
public Map queryData(Object credential, String resourceID, List dstQueryItems, Map interactedData, Document request) throws IDPPException
credential
- credentials of the requesting WSC.dstQueryItems
- list of DSTQueryItems.request
- query DOM request.interactedData
- map for interacted data. This map will have the
key as the PP DS attribute, and the value as
it's value.IDPPException.
IDPPException
public boolean modifyData(Object credential, String resourceID, List dstModifications, Map interactedData, Document request) throws IDPPException
credential
- credential of a WSC.resourceID
- resource id stringdstModifications
- list of DSTModification objects.interactedData
- map for interacted data. This map will have the
key as the PP DS attribute, and the value as
it's value.request
- a Document objectIDPPException.
IDPPException
public boolean isSelectDataSupported(String select)
select
- Select expression.public boolean isResourceIDValid(String resourceID)
resourceID
- resource id.public String getAuthZAction(Object credential, String action, String select, Map env) throws IDPPException
credential
- credential object.action
- request action query or modifyselect
- resource being accessedenv
- Environment map that the policy could useIDPPException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.