public class PathConfigurationBuilder extends AbstracHttpSecurityConfigurationChildBuilder implements PathConfigurationChildBuilder
A configuration builder with covenience methods to configure protected paths.
| Modifier and Type | Method and Description |
|---|---|
AuthenticationConfigurationBuilder |
authenticateWith()
Provides a set of options to configure authentication for a specific path.
|
AuthorizationConfigurationBuilder |
authorizeWith()
Provides a set of options to configure authorization for a specific path.
|
CORSConfigurationBuilder |
cors()
Provides a set of options to configure CORS for a specific path.
|
protected PathConfiguration |
create()
Creates a new configuration.
|
LogoutConfigurationBuilder |
logout()
Identifies a specific path as being responsible to provide logout functionality.
|
OutboundRedirectConfigurationBuilder |
redirectTo(String redirectUrl)
Specifies a url that will be used to redirect the user after a specific path is processed.
|
PathConfigurationBuilder |
unprotected()
Mark a specific path as not protected.
|
InboundHeaderConfigurationBuilder |
withHeaders()
Provides a set of options regarding the request headers for a specific request.
|
PathConfigurationBuilder |
withMethod(HttpMethod... methods)
Configures the
HttpMethod that are supported by a specific path. |
allPaths, forGroup, forPath, forPath, restrictivebuild, http, identity, idmConfig, readFrom, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallPaths, forGroup, forPath, forPath, restrictivebuild, http, identity, idmConfigpublic AuthenticationConfigurationBuilder authenticateWith()
Provides a set of options to configure authentication for a specific path.
authenticateWith in interface PathConfigurationChildBuilderpublic AuthorizationConfigurationBuilder authorizeWith()
Provides a set of options to configure authorization for a specific path.
authorizeWith in interface PathConfigurationChildBuilderpublic CORSConfigurationBuilder cors()
Provides a set of options to configure CORS for a specific path.
cors in interface PathConfigurationChildBuilderpublic LogoutConfigurationBuilder logout()
Identifies a specific path as being responsible to provide logout functionality.
public InboundHeaderConfigurationBuilder withHeaders()
Provides a set of options regarding the request headers for a specific request.
In this case, headers are used to identify requests from each other and also enforce different security policies depending on their presence.
public PathConfigurationBuilder withMethod(HttpMethod... methods)
Configures the HttpMethod that are supported by a specific path.
In this case, methods can also be used to identity requests from each other and also enforce different security policies dependending on their presence.
methods - public OutboundRedirectConfigurationBuilder redirectTo(String redirectUrl)
Specifies a url that will be used to redirect the user after a specific path is processed.
For instance, after a logout request you may use this method to redirect the user to a different url.
redirectTo in interface PathConfigurationChildBuilderredirectUrl - public PathConfigurationBuilder unprotected()
Mark a specific path as not protected. When a path is not protected, no security enforcement is applied.
unprotected in interface PathConfigurationChildBuilderprotected PathConfiguration create()
BuilderCreates a new configuration.
create in class AbstractSecurityConfigurationBuilderCopyright © 2024. All rights reserved.