public class AuthenticationManagementResource extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthenticationManagementResource.AuthenticationExecutionRepresentation |
class |
AuthenticationManagementResource.AuthenticatorConfigDescription |
static class |
AuthenticationManagementResource.RequiredActionProviderRepresentation |
| Constructor and Description |
|---|
AuthenticationManagementResource(RealmModel realm,
KeycloakSession session,
RealmAuth auth,
AdminEventBuilder adminEvent) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addExecution(AuthenticationExecutionModel model)
Add new authentication execution
|
void |
addExecution(String flowAlias,
Map<String,String> data)
Add new authentication execution to a flow
|
void |
addExecutionFlow(String flowAlias,
Map<String,String> data)
Add new flow with new execution to existing flow
|
List<Map<String,Object>> |
buildProviderMetadata(List<ProviderFactory> factories) |
protected void |
copy(String newName,
AuthenticationFlowModel from,
AuthenticationFlowModel to) |
javax.ws.rs.core.Response |
copy(String flowAlias,
Map<String,String> data)
Copy existing authentication flow under a new name
The new name is given as 'newName' attribute of the passed JSON object
|
javax.ws.rs.core.Response |
createAuthenticatorConfig(AuthenticatorConfigModel config)
Create new authenticator configuration
|
javax.ws.rs.core.Response |
createFlow(AuthenticationFlowModel model)
Create a new authentication flow
|
void |
deleteFlow(String id)
Delete an authentication flow
|
AuthenticatorConfigModel |
getAuthenticatorConfig(String id)
Get authenticator configuration
|
AuthenticatorConfigModel |
getAuthenticatorConfig(String execution,
String id)
Get execution's configuration
|
AuthenticationManagementResource.AuthenticatorConfigDescription |
getAuthenticatorConfigDescription(String providerId)
Get authenticator provider's configuration description
|
List<Map<String,Object>> |
getAuthenticatorProviders()
Get authenticator providers
Returns a list of authenticator providers.
|
List<Map<String,Object>> |
getClientAuthenticatorProviders()
Get client authenticator providers
Returns a list of client authenticator providers.
|
javax.ws.rs.core.Response |
getExecutions(String flowAlias)
Get authentication executions for a flow
|
AuthenticationFlowModel |
getFlow(String id)
Get authentication flow for id
|
List<AuthenticationFlowModel> |
getFlows()
Get authentication flows
Returns a list of authentication flows.
|
List<Map<String,Object>> |
getFormActionProviders()
Get form action providers
Returns a list of form action providers.
|
List<Map<String,Object>> |
getFormProviders()
Get form providers
Returns a list of form providers.
|
AuthenticationFlowModel |
getParentFlow(AuthenticationExecutionModel model) |
Map<String,List<ConfigPropertyRepresentation>> |
getPerClientConfigDescription()
Get configuration descriptions for all clients
|
AuthenticationManagementResource.RequiredActionProviderRepresentation |
getRequiredAction(String alias)
Get required action for alias
|
List<AuthenticationManagementResource.RequiredActionProviderRepresentation> |
getRequiredActions()
Get required actions
Returns a list of required actions.
|
List<AuthenticationExecutionModel> |
getSortedExecutions(AuthenticationFlowModel parentFlow) |
List<Map<String,String>> |
getUnregisteredRequiredActions()
Get unregistered required actions
Returns a list of unregistered required actions.
|
void |
lowerPriority(String execution)
Lower execution's priority
|
javax.ws.rs.core.Response |
newExecutionConfig(String execution,
AuthenticatorConfigModel config)
Update execution with new configuration
|
void |
raisePriority(String execution)
Raise execution's priority
|
void |
recurseExecutions(AuthenticationFlowModel flow,
List<AuthenticationManagementResource.AuthenticationExecutionRepresentation> result,
int level) |
void |
registereRequiredAction(Map<String,String> data)
Register a new required actions
|
void |
removeAuthenticatorConfig(String id)
Delete authenticator configuration
|
void |
removeExecution(String execution)
Delete execution
|
static AuthenticationManagementResource.RequiredActionProviderRepresentation |
toRepresentation(RequiredActionProviderModel model) |
void |
updateAuthenticatorConfig(String id,
AuthenticatorConfigModel config)
Update authenticator configuration
|
void |
updateExecutions(String flowAlias,
AuthenticationManagementResource.AuthenticationExecutionRepresentation rep)
Update authentication executions of a flow
|
void |
updateRequiredAction(String alias)
Delete required action
|
void |
updateRequiredAction(String alias,
AuthenticationManagementResource.RequiredActionProviderRepresentation rep)
Update required action
|
public AuthenticationManagementResource(RealmModel realm, KeycloakSession session, RealmAuth auth, AdminEventBuilder adminEvent)
public List<Map<String,Object>> getFormProviders()
public List<Map<String,Object>> getAuthenticatorProviders()
public List<Map<String,Object>> getClientAuthenticatorProviders()
public List<Map<String,Object>> buildProviderMetadata(List<ProviderFactory> factories)
public List<Map<String,Object>> getFormActionProviders()
public List<AuthenticationFlowModel> getFlows()
public javax.ws.rs.core.Response createFlow(AuthenticationFlowModel model)
model - Authentication flow modelpublic AuthenticationFlowModel getFlow(String id)
id - Flow idpublic void deleteFlow(String id)
id - Flow idpublic javax.ws.rs.core.Response copy(String flowAlias, Map<String,String> data)
flowAlias - Name of the existing authentication flowdata - JSON containing 'newName' attributeprotected void copy(String newName, AuthenticationFlowModel from, AuthenticationFlowModel to)
public void addExecutionFlow(String flowAlias, Map<String,String> data)
flowAlias - Alias of parent authentication flowdata - New authentication flow / execution JSON data containing 'alias', 'type', 'provider', and 'description' attributespublic void addExecution(String flowAlias, Map<String,String> data)
flowAlias - Alias of parent flowdata - New execution JSON data containing 'provider' attributepublic javax.ws.rs.core.Response getExecutions(String flowAlias)
flowAlias - Flow aliaspublic void recurseExecutions(AuthenticationFlowModel flow, List<AuthenticationManagementResource.AuthenticationExecutionRepresentation> result, int level)
public void updateExecutions(String flowAlias, AuthenticationManagementResource.AuthenticationExecutionRepresentation rep)
flowAlias - Flow aliasrep - public javax.ws.rs.core.Response addExecution(AuthenticationExecutionModel model)
model - JSON model describing authentication executionpublic AuthenticationFlowModel getParentFlow(AuthenticationExecutionModel model)
public void raisePriority(String execution)
execution - Execution idpublic List<AuthenticationExecutionModel> getSortedExecutions(AuthenticationFlowModel parentFlow)
public void lowerPriority(String execution)
execution - Execution idpublic void removeExecution(String execution)
execution - Execution idpublic javax.ws.rs.core.Response newExecutionConfig(String execution, AuthenticatorConfigModel config)
execution - Execution idconfig - JSON with new configurationpublic AuthenticatorConfigModel getAuthenticatorConfig(String execution, String id)
execution - Execution idid - Configuration idpublic List<Map<String,String>> getUnregisteredRequiredActions()
public void registereRequiredAction(Map<String,String> data)
data - JSON containing 'providerId', and 'name' attributes.public List<AuthenticationManagementResource.RequiredActionProviderRepresentation> getRequiredActions()
public static AuthenticationManagementResource.RequiredActionProviderRepresentation toRepresentation(RequiredActionProviderModel model)
public AuthenticationManagementResource.RequiredActionProviderRepresentation getRequiredAction(String alias)
alias - Alias of required actionpublic void updateRequiredAction(String alias, AuthenticationManagementResource.RequiredActionProviderRepresentation rep)
alias - Alias of required actionrep - JSON describing new state of required actionpublic void updateRequiredAction(String alias)
alias - Alias of required actionpublic AuthenticationManagementResource.AuthenticatorConfigDescription getAuthenticatorConfigDescription(String providerId)
public Map<String,List<ConfigPropertyRepresentation>> getPerClientConfigDescription()
public javax.ws.rs.core.Response createAuthenticatorConfig(AuthenticatorConfigModel config)
config - JSON describing new authenticator configurationpublic AuthenticatorConfigModel getAuthenticatorConfig(String id)
id - Configuration idpublic void removeAuthenticatorConfig(String id)
id - Configuration idpublic void updateAuthenticatorConfig(String id, AuthenticatorConfigModel config)
id - Configuration idconfig - JSON describing new state of authenticator configurationCopyright © 2016 JBoss by Red Hat. All rights reserved.