public interface IdentityHandler
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountId()
Gets the account id.
|
Map<String,Object> |
getAppAttributes()
Gets the application attributes.
|
String |
getAppId()
Gets the Foundry application id.
|
String |
getAppName()
Gets the Foundry application name.
|
Map<String,Object> |
getSecurityAttributes()
Gets the security attributes using default provider name.
|
Map<String,Object> |
getSecurityAttributes(String providerName,
boolean refresh)
Gets the security attributes for the given provider name.
|
Map<String,Object> |
getUserAttributes()
Gets user attributes using default provider name.
|
Map<String,Object> |
getUserAttributes(String providerName)
Gets the user attributes for the given provider name.
|
String |
getUserId()
Gets the user id from identity user profile.
|
UserProfile |
getUserProfile()
Gets the user profile from identity user profile.
|
boolean |
hasPermission(String resourcePath,
String requestedMethod)
Verifies if the given resource and method has permission.
|
String getUserId()
boolean hasPermission(String resourcePath, String requestedMethod) throws MiddlewareException
resourcePath - The resource path.requestedMethod - The requested method.MiddlewareExceptionUserProfile getUserProfile()
UserProfile.String getAppId()
Map<String,Object> getUserAttributes() throws MiddlewareException
MiddlewareExceptionMap<String,Object> getUserAttributes(String providerName) throws MiddlewareException
providerName - The identity provider name.MiddlewareExceptionMap<String,Object> getSecurityAttributes() throws MiddlewareException
MiddlewareExceptionMap<String,Object> getSecurityAttributes(String providerName, boolean refresh) throws MiddlewareException
providerName - The identity provider name.refresh - The Refresh attribute.MiddlewareExceptionMap<String,Object> getAppAttributes() throws MiddlewareException
MiddlewareExceptionString getAccountId()
String getAppName() throws MiddlewareException
MiddlewareException - The MiddlewareExceptionCopyright © 2019. All rights reserved.