Class AuthProperties.EurekaAccessProperties

  • Enclosing class:
    AuthProperties

    @Validated
    public static class AuthProperties.EurekaAccessProperties
    extends Object
    The eureka access properties.
    • Constructor Detail

      • EurekaAccessProperties

        public EurekaAccessProperties()
    • 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 encoder
        otherUserDetails - the other user details
        Returns:
        the user details