public abstract class AbstractHttpSecurityBuilder extends AbstractSecurityConfigurationBuilder<HttpSecurityConfiguration> implements HttpSecurityConfigurationChildBuilder
A configuration builder with covenience methods to configure http security features.
| Constructor and Description |
|---|
AbstractHttpSecurityBuilder(SecurityConfigurationBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
PathConfigurationBuilder |
allPaths()
Creates a configuration for a specific path.
|
protected HttpSecurityConfiguration |
create()
Creates a new configuration.
|
PathConfigurationBuilder |
forGroup(String groupName)
Creates a configuration for a group of paths.
|
PathConfigurationBuilder |
forPath(String path)
Creates a configuration for the given
path. |
PathConfigurationBuilder |
forPath(String path,
String groupName)
Creates a configuration for the given
path based on a previously configured path group. |
HttpSecurityConfigurationChildBuilder |
restrictive()
Indicates if the default behavior is to enforce security to all paths regardless they have a respective path configuration
or not.
|
build, http, identity, idmConfig, readFrom, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, http, identity, idmConfigpublic AbstractHttpSecurityBuilder(SecurityConfigurationBuilder builder)
public PathConfigurationBuilder allPaths()
Creates a configuration for a specific path.
allPaths in interface HttpSecurityConfigurationChildBuilderpublic PathConfigurationBuilder forPath(String path)
Creates a configuration for the given path.
forPath in interface HttpSecurityConfigurationChildBuilderpath - The path. It should always begin with a slash. Some examples of path are: /rest, /rest/*, /*.jsf.public PathConfigurationBuilder forPath(String path, String groupName)
Creates a configuration for the given path based on a previously configured path group.
forPath in interface HttpSecurityConfigurationChildBuilderpath - The path. It should always begin with a slash. Some examples of path are: /rest, /rest/*, /*.jsf.groupName - The group name. It must be a valid name referencing a path group defined using the forGroup(String).public PathConfigurationBuilder forGroup(String groupName)
Creates a configuration for a group of paths.
forGroup in interface HttpSecurityConfigurationChildBuildergroupName - The name of the path group.public HttpSecurityConfigurationChildBuilder restrictive()
Indicates if the default behavior is to enforce security to all paths regardless they have a respective path configuration or not.
If the protection mode is not specified (eg.: restrictive(), default is to be permissive.
restrictive in interface HttpSecurityConfigurationChildBuilderprotected HttpSecurityConfiguration create() throws SecurityConfigurationException
BuilderCreates a new configuration.
create in class AbstractSecurityConfigurationBuilder<HttpSecurityConfiguration>SecurityConfigurationException - if any error occurs or for any invalid configurationCopyright © 2021. All rights reserved.