Class AuthProperties.PathMatcherProperties
- java.lang.Object
-
- org.bremersee.security.authentication.AuthProperties.PathMatcherProperties
-
- Enclosing class:
- AuthProperties
@Validated public static class AuthProperties.PathMatcherProperties extends Object
The path matcher properties.
-
-
Field Summary
Fields Modifier and Type Field Description static StringALL_HTTP_METHODSThe constant ALL_HTTP_METHODS.static StringANY_PATHThe constant ANY_PATH.
-
Constructor Summary
Constructors Constructor Description PathMatcherProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotEmpty StringaccessExpression(Function<String,String> ensureRolePrefixFunction)Access expression string.@NotEmpty StringgetAntPattern()Gets ant pattern.@NotEmpty StringgetHttpMethod()Gets http method.org.springframework.http.HttpMethodhttpMethod()Http method http method.Set<String>roles(Function<String,String> ensureRolePrefixFunction)Returns valid roles.StringtoString()
-
-
-
Field Detail
-
ALL_HTTP_METHODS
public static final String ALL_HTTP_METHODS
The constant ALL_HTTP_METHODS.- See Also:
- Constant Field Values
-
ANY_PATH
public static final String ANY_PATH
The constant ANY_PATH.- See Also:
- Constant Field Values
-
-
Method Detail
-
getHttpMethod
@NotEmpty public @NotEmpty String getHttpMethod()
Gets http method.- Returns:
- the http method
-
getAntPattern
@NotEmpty public @NotEmpty String getAntPattern()
Gets ant pattern.- Returns:
- the ant pattern
-
httpMethod
@Nullable public org.springframework.http.HttpMethod httpMethod()
Http method http method.- Returns:
- the http method
-
accessExpression
@NotEmpty public @NotEmpty String accessExpression(@Nullable Function<String,String> ensureRolePrefixFunction)
Access expression string.- Parameters:
ensureRolePrefixFunction- the ensure role prefix function- Returns:
- the string
-
roles
public Set<String> roles(@Nullable Function<String,String> ensureRolePrefixFunction)
Returns valid roles.- Parameters:
ensureRolePrefixFunction- the ensure role prefix function- Returns:
- the valid roles
-
-