public class IDPPUtils extends Object
IDPPUtils
is utility class used by IDPP service
for any common functionality in various modules.Modifier and Type | Field and Description |
---|---|
static ResourceBundle |
bundle |
static Debug |
debug |
static HashMap |
idppIDSMap |
Constructor and Description |
---|
IDPPUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkForUserAttributes(String userDN,
Set set)
Checks for if the user attribute values exist
for a given set.
|
static com.sun.identity.liberty.ws.idpp.jaxb.QueryElement |
createQueryElement(List queryExpressions,
String resourceID,
boolean includeCommonAttr)
Creates a Query Request element given a set of query expressions.
|
static com.sun.identity.liberty.ws.idpp.jaxb.ResourceIDElement |
createResourceIDElement(String resourceID)
Creates Discovery resource id type.
|
static DocumentBuilder |
getDocumentBuilder()
Gets the document builder.
|
static String |
getExpressionContext(String select)
Looks for the expression context.
|
static int |
getIDPPElementType(String element)
Returns element type.
|
static com.sun.identity.liberty.ws.idpp.jaxb.ObjectFactory |
getIDPPFactory()
Gets the IDPPFactory JAXB Object.
|
static Marshaller |
getMarshaller()
Gets the marshaller
|
static List |
getQueryDataElements(com.sun.identity.liberty.ws.idpp.jaxb.QueryResponseElement response)
Gets the data element given a Query Response.
|
static String |
getResourceExpression(String select)
Returns the resource expression from the select xpath expression.
|
static String |
getResourceID(String userID)
Gets the resource id for a given user id
|
static Unmarshaller |
getUnmarshaller()
Get the unmarshaller object.
|
static Map |
getUserAttributes(String userDN,
Set requiredSet)
Returns the user attribute values.
|
static boolean |
isUserExists(String userDN)
Checks is the user exists or not.
|
static void |
setUserAttributes(String userDN,
Map map)
Stores the user attribute values in the data store.
|
public static Debug debug
public static ResourceBundle bundle
public static HashMap idppIDSMap
public static com.sun.identity.liberty.ws.idpp.jaxb.QueryElement createQueryElement(List queryExpressions, String resourceID, boolean includeCommonAttr) throws JAXBException, IDPPException
queryExpressions
- a list of query expressionsresourceID
- resource id.includeCommonAttr
- include common attribute or notJAXBException
IDPPException
public static List getQueryDataElements(com.sun.identity.liberty.ws.idpp.jaxb.QueryResponseElement response) throws JAXBException, IDPPException
response
- QueryResponseElementJAXBException
IDPPException
public static com.sun.identity.liberty.ws.idpp.jaxb.ResourceIDElement createResourceIDElement(String resourceID) throws JAXBException, IDPPException
resourceID
- resource id string.JAXBException
IDPPException
public static String getExpressionContext(String select)
select
- string.public static Map getUserAttributes(String userDN, Set requiredSet) throws IDPPException
userDN
- user DN.requiredSet
- a set of required attributes.IDPPException
public static void setUserAttributes(String userDN, Map map) throws IDPPException
userDN
- user DNmap
- user attribute value mapIDPPException
public static boolean checkForUserAttributes(String userDN, Set set) throws IDPPException
userDN
- user DN.set
- a set of user attributes that require check.IDPPException
public static int getIDPPElementType(String element)
element
- a String representing an Element.public static boolean isUserExists(String userDN)
userDN
- user DNpublic static com.sun.identity.liberty.ws.idpp.jaxb.ObjectFactory getIDPPFactory()
public static Marshaller getMarshaller() throws JAXBException
JAXBException
public static Unmarshaller getUnmarshaller() throws JAXBException
JAXBException
public static DocumentBuilder getDocumentBuilder()
public static String getResourceExpression(String select)
select
- Xpath select expression.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.