org.beangle.security.authc

Type members

Classlikes

abstract class AbstractAccountRealm extends Realm with Logging
abstract class AbstractAuthenticator extends Authenticator with Logging
trait Account extends Principal with Externalizable

Authentication Information

Authentication Information

@SerialVersionUID(-3529782031102169004L)
class AuthenticationException(message: String, val principal: Any, cause: Throwable) extends SecurityException

认证异常

认证异常

trait AuthenticationToken extends Principal with Serializable

Authentication Token used before authentication

Authentication Token used before authentication

Authentication Manager

Authentication Manager

class BadCredentialException(message: String, token: AuthenticationToken, cause: Throwable) extends AuthenticationException
case class CredentialAge(updatedAt: Instant, expiredOn: LocalDate, inactiveOn: LocalDate)

凭证验证器

凭证验证器

凭证存储库

凭证存储库

Companion
class
final class DefaultAccount extends Account
Companion
object
class DefaultAccountRealm(accountStore: AccountStore, credentialChecker: CredentialChecker) extends AbstractAccountRealm
class DisabledException(message: String, token: AuthenticationToken) extends AccountStatusException

First win,imply at least one and ignore remainders

First win,imply at least one and ignore remainders

class LockedException(message: String, token: AuthenticationToken) extends AccountStatusException
Companion
class
Companion
object
class PreauthToken(val principal: Any, val credential: Any) extends AuthenticationToken

Preauth Authentication Token

Preauth Authentication Token

object Principals
object Profile
Companion
class
case class Profile(id: Long, name: String, properties: Map[String, String])
Companion
object

How we authenticate user within multiple realms

How we authenticate user within multiple realms

class RealmAuthenticator(val reams: List[Realm]) extends AbstractAuthenticator with Logging

Realm Authenticator

Realm Authenticator

@SerialVersionUID(1L)
class UsernameNotFoundException(message: String, token: AuthenticationToken, cause: Throwable) extends AuthenticationException
@SerialVersionUID(3966615358056184985L)
class UsernamePasswordToken(val principal: Any, val credential: Any) extends AuthenticationToken

Simple Authentication Token

Simple Authentication Token