com.sun.identity.authentication.spi
Class InvalidPasswordException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.security.GeneralSecurityException
                    |
                    +--javax.security.auth.login.LoginException
                          |
                          +--com.sun.identity.authentication.spi.InvalidPasswordException
All Implemented Interfaces:
java.io.Serializable

public class InvalidPasswordException
extends javax.security.auth.login.LoginException

Exception that is thrown when the user-entered password token causes the authentication module to be authenticated to fail. Authentication module must throw this exception if it wishes to participate in user lock out due to too many password failure login feature. Prior to throwing this exception, the authentication module should set the userTokenId so that subsequent calls to getUserTokenId will return correct userTokenId that will be use to lock out the user.

See Also:
Serialized Form

Constructor Summary
InvalidPasswordException()
           
InvalidPasswordException(java.lang.String message)
           
InvalidPasswordException(java.lang.String message, java.lang.String tokenId)
           
 
Method Summary
 java.lang.String getTokenId()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidPasswordException

public InvalidPasswordException()

InvalidPasswordException

public InvalidPasswordException(java.lang.String message)

InvalidPasswordException

public InvalidPasswordException(java.lang.String message,
                                java.lang.String tokenId)
Method Detail

getTokenId

public java.lang.String getTokenId()