クラス ActiveDirectoryAuthenticationException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.security.core.AuthenticationException
org.springframework.security.ldap.authentication.ad.ActiveDirectoryAuthenticationException
- 実装済みのインターフェース一覧:
SerializableSE
ActiveDirectoryLdapAuthenticationProvider を使用して Active Directory に対して認証を試みるときに、AuthenticationExceptionSE の変換としてスローされます。通常、このエラーはユーザーフレンドリなメッセージを提供しないため、AuthenticationException によってラップされます。ラップすると、元の例外をキャッチでき、カスタムエラー処理のために Throwable.getCause() を使用して ActiveDirectoryAuthenticationException にアクセスできます。
getDataCode() は、エラーメッセージのデータ部分に関連付けられたエラーコードを返します。例: 次のエラーメッセージは getDataCode() に対して 773 を返します。
javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 775, vece ]
- 関連事項:
方法の概要
クラス AuthenticationException から継承されたメソッド
getAuthenticationRequest, setAuthenticationRequest
方法の詳細
getDataCode