public class ProviderRoleMapping extends Object
| Constructor and Description |
|---|
ProviderRoleMapping() |
ProviderRoleMapping(boolean mapOauthScopes) |
ProviderRoleMapping(boolean mapOauthScopes,
Map<String,String> roleMappings) |
| Modifier and Type | Method and Description |
|---|---|
ProviderRoleMapping |
addRoleMapping(String oauthScope,
String roleName) |
Map<CoreSecurityRoles,String> |
convertRoleMappingKeysToCoreSecurityRoles() |
String |
getOauthScopePrefix() |
Map<String,String> |
getRoleMappings()
When using OAuth2 with enabled
setMapOauthScopes(boolean), you can optionally specify a custom
mapping of OAuth scopes to role names as they exist in the Data Flow application. |
String |
getRolePrefix() |
boolean |
isMapOauthScopes() |
void |
setMapOauthScopes(boolean mapOauthScopes)
If set to true, Oauth scopes will be mapped to corresponding Data Flow roles.
|
void |
setOauthScopePrefix(String oauthScopePrefix) |
void |
setRolePrefix(String rolePrefix)
Sets the prefix which should be added to the authority name (if it doesn't already
exist).
|
public ProviderRoleMapping()
public ProviderRoleMapping(boolean mapOauthScopes)
public boolean isMapOauthScopes()
public void setMapOauthScopes(boolean mapOauthScopes)
mapOauthScopes - If not set defaults to falsepublic Map<String,String> getRoleMappings()
setMapOauthScopes(boolean), you can optionally specify a custom
mapping of OAuth scopes to role names as they exist in the Data Flow application. If not
set, then the OAuth scopes themselves must match the role names:
public ProviderRoleMapping addRoleMapping(String oauthScope, String roleName)
public Map<CoreSecurityRoles,String> convertRoleMappingKeysToCoreSecurityRoles()
CoreSecurityRoles as key and the associated role name (String) as value.public void setRolePrefix(String rolePrefix)
rolePrefix - Must not be nullpublic String getOauthScopePrefix()
public void setOauthScopePrefix(String oauthScopePrefix)
oauthScopePrefix - Must not be nullpublic String getRolePrefix()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.