クラス 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 に対して認証を試みるときに、AuthenticationException
SE の変換としてスローされます。通常、このエラーはユーザーフレンドリなメッセージを提供しないため、AuthenticationException
によってラップされます。ラップすると、元の例外をキャッチでき、カスタムエラー処理のために Throwable.getCause()
を使用して ActiveDirectoryAuthenticationException
にアクセスできます。
getDataCode()
は、エラーメッセージのデータ部分に関連付けられたエラーコードを返します。例: 次のエラーメッセージは getDataCode()
に対して 773 を返します。
javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 775, vece ]
- 関連事項:
メソッドのサマリー
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
メソッドの詳細
getDataCode