public class UserStoreAuthorizationRoleRetriever extends Object implements AuthorizationRoleRetriever
| Constructor and Description |
|---|
UserStoreAuthorizationRoleRetriever() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAllRoles()
Method used to get all the user roles in order to display in data service design phase.
|
String[] |
getRolesForUser(org.apache.axis2.context.MessageContext msgContext)
Method used to get the roles of the user.
|
void |
init()
This method will be invoked after instantiating the class, So operation which needs to be carried out with
specified properties needs to be done in this method.
|
void |
setProperties(Map<String,String> authenticatorProperties)
To set the properties specific to role retriever, if no properties specified, empty map will be passed
format to specify property "
|
public String[] getRolesForUser(org.apache.axis2.context.MessageContext msgContext) throws DataServiceFault
AuthorizationRoleRetrievergetRolesForUser in interface AuthorizationRoleRetrievermsgContext - to be used in retrieving roles.DataServiceFaultpublic String[] getAllRoles() throws DataServiceFault
AuthorizationRoleRetrievergetAllRoles in interface AuthorizationRoleRetrieverDataServiceFaultpublic void setProperties(Map<String,String> authenticatorProperties)
AuthorizationRoleRetrieversetProperties in interface AuthorizationRoleRetrieverpublic void init()
throws DataServiceFault
AuthorizationRoleRetrieverinit in interface AuthorizationRoleRetrieverDataServiceFaultCopyright © 2015 WSO2. All rights reserved.