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 Fabric application id.
|
String |
getAppName()
Gets the Fabric 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.MiddlewareException
UserProfile getUserProfile()
UserProfile
.String getAppId()
Map<String,Object> getUserAttributes() throws MiddlewareException
MiddlewareException
Map<String,Object> getUserAttributes(String providerName) throws MiddlewareException
providerName
- The identity provider name.MiddlewareException
Map<String,Object> getSecurityAttributes() throws MiddlewareException
MiddlewareException
Map<String,Object> getSecurityAttributes(String providerName, boolean refresh) throws MiddlewareException
providerName
- The identity provider name.refresh
- The Refresh attribute.MiddlewareException
Map<String,Object> getAppAttributes() throws MiddlewareException
MiddlewareException
String getAccountId()
String getAppName() throws MiddlewareException
MiddlewareException
- The MiddlewareException
Copyright © 2019. All rights reserved.