user

package
v0.0.0-...-d9d5b18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PasswordSalt

type PasswordSalt interface {
	GetSalt() string
	SaltPassword(password string, salt string) string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL