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.
|
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, restrictive
build, http, identity, idmConfig, readFrom, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allPaths, forGroup, forPath, forPath, restrictive
build, http, identity, idmConfig
public AuthenticationConfigurationBuilder authenticateWith()
Provides a set of options to configure authentication for a specific path.
authenticateWith
in interface PathConfigurationChildBuilder
public AuthorizationConfigurationBuilder authorizeWith()
Provides a set of options to configure authorization for a specific path.
authorizeWith
in interface PathConfigurationChildBuilder
public 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 PathConfigurationChildBuilder
redirectUrl
- public PathConfigurationBuilder unprotected()
Mark a specific path as not protected. When a path is not protected, no security enforcement is applied.
unprotected
in interface PathConfigurationChildBuilder
protected PathConfiguration create()
Builder
Creates a new configuration.
create
in class AbstractSecurityConfigurationBuilder
Copyright © 2018 JBoss by Red Hat. All rights reserved.