public abstract class HttpSecurityBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.configuration2.PropertiesConfiguration |
configuration |
| Constructor and Description |
|---|
HttpSecurityBuilder()
The constructor, load the class with the configuration to retrieve the
http rules operators and the rules map
|
| Modifier and Type | Method and Description |
|---|---|
HttpSecurityBuilder |
add(String path,
String rule)
Method used to add rules to this builder
|
HttpSecurityBuilder |
add(String path,
String rule,
boolean authenticated)
Method used to add rules to this builder when need to be authenticated
to be accessed
|
Map<String,String> |
build()
With this method you can retrieve the rules created in the execution of
this builder
|
abstract String |
getBuilderOperator()
The builder operator to use to construct rules, used by the implementations
of this class to format the rules for this builder
|
protected final org.apache.commons.configuration2.PropertiesConfiguration configuration
public HttpSecurityBuilder()
public abstract String getBuilderOperator()
public HttpSecurityBuilder add(String path, String rule)
path - the path to be securedrule - the rule to be used to secure this pathpublic HttpSecurityBuilder add(String path, String rule, boolean authenticated)
path - the path to be securedrule - the rule to be used to secure this pathauthenticated - if theCopyright © 2018 Arthur Gregorio. All rights reserved.