クラス ActiveDirectoryAuthenticationException

  • 実装されたすべてのインターフェース:
    java.io.Serializable

    public final class ActiveDirectoryAuthenticationException
    extends AuthenticationException

    ActiveDirectoryLdapAuthenticationProvider を使用して Active Directory に対して認証しようとすると、AuthenticationException の変換としてスローされます。通常、このエラーはユーザーフレンドリーなメッセージを提供しないため、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.StringgetDataCode()
      • クラス java.lang.Throwable から継承されたメソッド

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • クラス java.lang.Object から継承されたメソッド

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • メソッドの詳細

      • getDataCode

        public java.lang.String getDataCode()