Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NotFound = exception.New(http.StatusNotFound, "User not found")
)
Functions ¶
This section is empty.
Types ¶
type BasicUserDetails ¶
type BasicUserDetails struct {
// contains filtered or unexported fields
}
func NewBasicUserDetails ¶
func NewBasicUserDetails( username string, password string, authorities []authority.GrantedAuthority, ) *BasicUserDetails
func (BasicUserDetails) Authorities ¶
func (s BasicUserDetails) Authorities() []authority.GrantedAuthority
func (BasicUserDetails) Password ¶
func (s BasicUserDetails) Password() string
func (BasicUserDetails) Username ¶
func (s BasicUserDetails) Username() string
type Details ¶
type Details interface { // Username Returns the username Username() string // Password Returns the user's password. Password() string // Authorities Returns the authorities granted to the user. Authorities() []authority.GrantedAuthority }
type InMemUserDetailsService ¶
type InMemUserDetailsService struct {
// contains filtered or unexported fields
}
func NewInMemUserDetailsService ¶
func NewInMemUserDetailsService(userDetails []Details) *InMemUserDetailsService
func (InMemUserDetailsService) GetByUsername ¶
func (i InMemUserDetailsService) GetByUsername(username string) (Details, error)
type Service ¶
type Service interface { // GetByUsername Locates the user based on the username. GetByUsername(username string) (Details, error) }
Service Core interface which loads user-specific data.
type SimpleUserDetails ¶
type SimpleUserDetails struct {
// contains filtered or unexported fields
}
func NewSimpleUserDetails ¶
func NewSimpleUserDetails(userId string, authorities []authority.GrantedAuthority) *SimpleUserDetails
func (SimpleUserDetails) Authorities ¶
func (v SimpleUserDetails) Authorities() []authority.GrantedAuthority
func (SimpleUserDetails) Password ¶
func (v SimpleUserDetails) Password() string
func (SimpleUserDetails) Username ¶
func (v SimpleUserDetails) Username() string
Click to show internal directories.
Click to hide internal directories.