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 String
ALL_HTTP_METHODS
The constant ALL_HTTP_METHODS.static String
ANY_PATH
The constant ANY_PATH.
-
Constructor Summary
Constructors Constructor Description PathMatcherProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotEmpty String
accessExpression(Function<String,String> ensureRolePrefixFunction)
Access expression string.@NotEmpty String
getAntPattern()
Gets ant pattern.@NotEmpty String
getHttpMethod()
Gets http method.org.springframework.http.HttpMethod
httpMethod()
Http method http method.Set<String>
roles(Function<String,String> ensureRolePrefixFunction)
Returns valid roles.String
toString()
-
-
-
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
-
-