Documentation ¶
Index ¶
- type MockUser
- type MockUserPasswordSalt
- func (_m *MockUserPasswordSalt) GetPassword() string
- func (_m *MockUserPasswordSalt) GetRoles() []string
- func (_m *MockUserPasswordSalt) GetSalt() string
- func (_m *MockUserPasswordSalt) GetUsername() string
- func (_m *MockUserPasswordSalt) IsCredentialsExpired() bool
- func (_m *MockUserPasswordSalt) IsEnabled() bool
- func (_m *MockUserPasswordSalt) IsExpired() bool
- func (_m *MockUserPasswordSalt) IsLocked() bool
- func (_m *MockUserPasswordSalt) SaltPassword(password string, salt string) string
- type PasswordSalt
- type User
- type UserPasswordSalt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUser ¶
MockUser is an autogenerated mock type for the User type
func (*MockUser) GetPassword ¶
GetPassword provides a mock function with given fields:
func (*MockUser) GetUsername ¶
GetUsername provides a mock function with given fields:
func (*MockUser) IsCredentialsExpired ¶
IsCredentialsExpired provides a mock function with given fields:
type MockUserPasswordSalt ¶
MockUserPasswordSalt is an autogenerated mock type for the UserPasswordSalt type
func (*MockUserPasswordSalt) GetPassword ¶
func (_m *MockUserPasswordSalt) GetPassword() string
GetPassword provides a mock function with given fields:
func (*MockUserPasswordSalt) GetRoles ¶
func (_m *MockUserPasswordSalt) GetRoles() []string
GetRoles provides a mock function with given fields:
func (*MockUserPasswordSalt) GetSalt ¶
func (_m *MockUserPasswordSalt) GetSalt() string
GetSalt provides a mock function with given fields:
func (*MockUserPasswordSalt) GetUsername ¶
func (_m *MockUserPasswordSalt) GetUsername() string
GetUsername provides a mock function with given fields:
func (*MockUserPasswordSalt) IsCredentialsExpired ¶
func (_m *MockUserPasswordSalt) IsCredentialsExpired() bool
IsCredentialsExpired provides a mock function with given fields:
func (*MockUserPasswordSalt) IsEnabled ¶
func (_m *MockUserPasswordSalt) IsEnabled() bool
IsEnabled provides a mock function with given fields:
func (*MockUserPasswordSalt) IsExpired ¶
func (_m *MockUserPasswordSalt) IsExpired() bool
IsExpired provides a mock function with given fields:
func (*MockUserPasswordSalt) IsLocked ¶
func (_m *MockUserPasswordSalt) IsLocked() bool
IsLocked provides a mock function with given fields:
func (*MockUserPasswordSalt) SaltPassword ¶
func (_m *MockUserPasswordSalt) SaltPassword(password string, salt string) string
SaltPassword provides a mock function with given fields: password, salt
type PasswordSalt ¶
PasswordSalt interface.
type User ¶
type User interface { // GetRoles returns the roles granted to the user. GetRoles() []string // GetPassword returns the password used to authenticate the user GetPassword() string // GetUsername returns the username used to authenticate the user GetUsername() string // IsExpired indicates whether the user's account has expired. IsExpired() bool // IsLocked indicates whether the user is locked or unlocked. IsLocked() bool // IsEnabled indicates whether the user is enabled or disabled. IsEnabled() bool // IsCredentialsExpired indicates whether the user's credentials (password) has expired. IsCredentialsExpired() bool }
User interface provides core user information
type UserPasswordSalt ¶
type UserPasswordSalt interface { User PasswordSalt }
UserPasswordSalt interface.