public class UserInfoUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
buildJSON(Map<String,Object> params)
Build Json and return as a String value.
|
static List<org.wso2.carbon.auth.user.store.configuration.models.AttributeConfiguration> |
getAttributeConfiguration()
Retrieve list of attribute configuration
|
static Map<String,org.wso2.charon3.core.attributes.Attribute> |
getUserAttributes(org.wso2.carbon.auth.token.introspection.dto.IntrospectionResponse introspectionResponse)
Retrieve user attribute for given introspect response
|
static Map<String,Object> |
getUserAttributesFilteredByScope(Map<String,org.wso2.charon3.core.attributes.Attribute> userAttributes,
String[] requestedScopes)
Filter user attributes based on the requested scopes.
|
static UserInfoConfigurationService |
getUserInfoConfigurationService()
Retrieve user info configuration service
|
static UserInfoResponseBuilder |
getUserInfoResponseBuilder()
Retrieve UserInfoResponseBuilder
|
static org.wso2.charon3.core.extensions.UserManager |
getUserManager()
Retrieve user manager instance
|
static void |
initializeUserInfoConfigurationService(UserInfoConfigurationService userInfoConfigurationService)
Initialize user info configuration service
|
static void |
setUserManager(org.wso2.charon3.core.extensions.UserManager userManager) |
public static org.wso2.charon3.core.extensions.UserManager getUserManager()
public static List<org.wso2.carbon.auth.user.store.configuration.models.AttributeConfiguration> getAttributeConfiguration()
public static Map<String,org.wso2.charon3.core.attributes.Attribute> getUserAttributes(org.wso2.carbon.auth.token.introspection.dto.IntrospectionResponse introspectionResponse) throws UserInfoException
introspectionResponse - Introspect responseUserInfoException - If failed to retrieve user attributespublic static void initializeUserInfoConfigurationService(UserInfoConfigurationService userInfoConfigurationService)
userInfoConfigurationService - UserInfoConfigurationService instancepublic static UserInfoConfigurationService getUserInfoConfigurationService()
public static UserInfoResponseBuilder getUserInfoResponseBuilder() throws UserInfoException
UserInfoException - if failed to retrieve UserInfoResponseBuilder instancepublic static Map<String,Object> getUserAttributesFilteredByScope(Map<String,org.wso2.charon3.core.attributes.Attribute> userAttributes, String[] requestedScopes) throws UserInfoException
userAttributes - Map of user attributesrequestedScopes - Requested scopesUserInfoExceptionpublic static String buildJSON(Map<String,Object> params) throws UserInfoException
params - Map of valuesUserInfoException - if failed to build the jsonpublic static void setUserManager(org.wso2.charon3.core.extensions.UserManager userManager)
Copyright © 2018 WSO2. All rights reserved.