public class JWTAuthorizationProvider extends Object implements AuthorizationProvider
| Constructor and Description |
|---|
JWTAuthorizationProvider() |
| 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 |
getUsername(org.apache.axis2.context.MessageContext msgContext)
Method to get username from the message context.
|
String[] |
getUserRoles(org.apache.axis2.context.MessageContext msgContext)
Method used to get the roles of the user.
|
void |
init(Map<String,String> authorizationProps)
To set the properties specific to AuthorizationProvider, and instantiate the object.
|
public String[] getUserRoles(org.apache.axis2.context.MessageContext msgContext) throws DataServiceFault
AuthorizationProvidergetUserRoles in interface AuthorizationProvidermsgContext - to be used in retrieving roles.DataServiceFaultpublic String[] getAllRoles() throws DataServiceFault
AuthorizationProvidergetAllRoles in interface AuthorizationProviderDataServiceFaultpublic String getUsername(org.apache.axis2.context.MessageContext msgContext) throws DataServiceFault
AuthorizationProvidergetUsername in interface AuthorizationProviderDataServiceFaultpublic void init(Map<String,String> authorizationProps) throws DataServiceFault
AuthorizationProviderinit in interface AuthorizationProviderDataServiceFaultCopyright © 2017 WSO2. All rights reserved.