public class CommonAuthModule extends Object
Constructor and Description |
---|
CommonAuthModule() |
Modifier and Type | Method and Description |
---|---|
static String |
getMail(String token,
String user)
Get mail from user
|
static String |
getName(String token,
String user)
Get name from user.
|
static PrincipalAdapter |
getPrincipalAdapter()
Singleton pattern for global Principal Adapter.
|
static List<String> |
getRoles(String token)
Get roles
|
static List<String> |
getRolesByUser(String token,
String user)
Get roles from user
|
static List<String> |
getUsers(String token)
Get users
|
static List<String> |
getUsersByRole(String token,
String role)
Get users by role
|
public static List<String> getUsers(String token) throws PrincipalAdapterException
PrincipalAdapterException
public static List<String> getRoles(String token) throws PrincipalAdapterException
PrincipalAdapterException
public static List<String> getUsersByRole(String token, String role) throws PrincipalAdapterException
PrincipalAdapterException
public static List<String> getRolesByUser(String token, String user) throws PrincipalAdapterException
PrincipalAdapterException
public static String getMail(String token, String user) throws PrincipalAdapterException
PrincipalAdapterException
public static String getName(String token, String user) throws PrincipalAdapterException
PrincipalAdapterException
public static PrincipalAdapter getPrincipalAdapter() throws PrincipalAdapterException
PrincipalAdapterException
Copyright © 2015. All Rights Reserved.