Class AuthProperties.EurekaAccessProperties
- java.lang.Object
-
- org.bremersee.security.authentication.AuthProperties.EurekaAccessProperties
-
- Enclosing class:
- AuthProperties
@Validated public static class AuthProperties.EurekaAccessProperties extends Object
The eureka access properties.
-
-
Constructor Summary
Constructors Constructor Description EurekaAccessProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotEmpty String
buildAccessExpression(Function<String,String> ensureRolePrefixFunction)
Build access expression.@NotNull org.springframework.security.core.userdetails.UserDetails[]
buildBasicAuthUserDetails(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, org.springframework.security.core.userdetails.UserDetails... otherUserDetails)
Build basic auth user details.String
role(Function<String,String> ensureRolePrefixFunction)
Returns the role.
-
-
-
Method Detail
-
role
@Nullable public String role(@Nullable Function<String,String> ensureRolePrefixFunction)
Returns the role.- Parameters:
ensureRolePrefixFunction
- function to ensure role prefix- Returns:
- the role
-
buildAccessExpression
@NotEmpty public @NotEmpty String buildAccessExpression(@Nullable Function<String,String> ensureRolePrefixFunction)
Build access expression.- Parameters:
ensureRolePrefixFunction
- function to ensure role prefix- Returns:
- the access expression
-
buildBasicAuthUserDetails
@NotNull public @NotNull org.springframework.security.core.userdetails.UserDetails[] buildBasicAuthUserDetails(@Nullable org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, org.springframework.security.core.userdetails.UserDetails... otherUserDetails)
Build basic auth user details.- Parameters:
passwordEncoder
- the password encoderotherUserDetails
- the other user details- Returns:
- the user details
-
-