クラス JaasAuthenticationToken
java.lang.ObjectSE
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
org.springframework.security.authentication.jaas.JaasAuthenticationToken
- 実装されているすべてのインターフェース:
SerializableSE、PrincipalSE、Authentication、CredentialsContainer
ユーザーがログインした Jaas LoginContext を運ぶ UsernamePasswordAuthenticationToken 拡張
- 関連事項:
ネストされたクラスの要約
ネストされたクラスクラス org.springframework.security.authentication.AbstractAuthenticationToken から継承されたネストクラス / インターフェース
AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>コンストラクターの概要
コンストラクター修飾子コンストラクター説明JaasAuthenticationToken(ObjectSE principal, @Nullable ObjectSE credentials, ListSE<GrantedAuthority> authorities, LoginContextSE loginContext) JaasAuthenticationToken(ObjectSE principal, @Nullable ObjectSE credentials, LoginContextSE loginContext) protected方法の概要
クラス org.springframework.security.authentication.UsernamePasswordAuthenticationToken から継承されたメソッド
authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, unauthenticatedクラス org.springframework.security.authentication.AbstractAuthenticationToken から継承されたメソッド
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, waitSE, waitSEインターフェース java.security.PrincipalSE から継承されたメソッド
impliesSE
コンストラクターの詳細
JaasAuthenticationToken
public JaasAuthenticationToken(ObjectSE principal, @Nullable ObjectSE credentials, LoginContextSE loginContext) JaasAuthenticationToken
public JaasAuthenticationToken(ObjectSE principal, @Nullable ObjectSE credentials, ListSE<GrantedAuthority> authorities, LoginContextSE loginContext) JaasAuthenticationToken
メソッドの詳細
getLoginContext
toBuilder
インターフェースからコピーされた説明:Authenticationこのインスタンスに基づいてAuthentication.Builderを返します。デフォルトでは、SimpleAuthenticationを構築するビルダーを返します。default方式ではありますが、すべてのAuthentication実装でこれを実装する必要があります。これは、Authentication.Builder.build()が呼び出された際にAuthentication型が保持されることを保証するためです。これは、認証実装にカスタムフィールドが含まれている場合に特に重要です。アプリケーションは
Authenticationインターフェースにコード化することが推奨されており、カスタム情報は多くの場合Authentication.getPrincipal()値に含まれているため、これは厳密には必要ではありません。- 次で指定:
- インターフェース
AuthenticationのtoBuilder - オーバーライド:
- クラス
UsernamePasswordAuthenticationTokenのtoBuilder - 戻り値:
- このインスタンスに基づいて新しい
Authenticationを構築するためのAuthentication.Builder