Class InvalidPasswordException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.security.GeneralSecurityException
javax.security.auth.login.LoginException
com.sun.identity.authentication.spi.AuthLoginException
com.sun.identity.authentication.spi.InvalidPasswordException
- All Implemented Interfaces:
com.sun.identity.shared.locale.L10NMessage,Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPasswordException(InvalidPasswordException e, boolean isDn) Constructs anInvalidPasswordExceptionobject.InvalidPasswordException(String message) Constructs anInvalidPasswordExceptionobject.InvalidPasswordException(String message, String tokenId) Constructs anInvalidPasswordExceptionobject.InvalidPasswordException(String message, String tokenId, boolean isDn) Constructs anInvalidPasswordExceptionobject.InvalidPasswordException(String rbName, String errCode, Object[] args) Constructs anInvalidPasswordExceptionobject.InvalidPasswordException(String rbName, String errorCode, Object[] args, String tokenId, boolean isDn, Throwable t) Constructs anInvalidPasswordExceptionobject.InvalidPasswordException(String rbName, String errorCode, Object[] args, String tokenId, Throwable t) Constructs anInvalidPasswordExceptionobject.Constructs anInvalidPasswordExceptionobject. -
Method Summary
Modifier and TypeMethodDescriptionReturns the token ID.Returns the username.Methods inherited from class com.sun.identity.authentication.spi.AuthLoginException
getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleNameMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPasswordException
Constructs anInvalidPasswordExceptionobject.- Parameters:
rbName- Resource bundle name for the message.errCode- Key to the message in resource bundle.args- Arguments to the message.
-
InvalidPasswordException
Constructs anInvalidPasswordExceptionobject.- Parameters:
message- English message for the exception.
-
InvalidPasswordException
Constructs anInvalidPasswordExceptionobject.- Parameters:
message- English message for the exception.tokenId- TheuserIdfor which the exception occurred.
-
InvalidPasswordException
Constructs anInvalidPasswordExceptionobject.- Parameters:
message- English message for the exception.tokenId- TheuserIdfor which the exception occurred.isDn- whether the tokenId represents a DN or a username
-
InvalidPasswordException
Constructs anInvalidPasswordExceptionobject.- Parameters:
t- the root cause of the exception
-
InvalidPasswordException
public InvalidPasswordException(String rbName, String errorCode, Object[] args, String tokenId, Throwable t) Constructs anInvalidPasswordExceptionobject.- Parameters:
rbName- Resource bundle name for the message.errorCode- Key to the message in resource bundle.args- Arguments to the message.tokenId-userIDfor which the exception occurred.t- The root cause of the exception.
-
InvalidPasswordException
public InvalidPasswordException(String rbName, String errorCode, Object[] args, String tokenId, boolean isDn, Throwable t) Constructs anInvalidPasswordExceptionobject.- Parameters:
rbName- Resource bundle name for the message.errorCode- Key to the message in resource bundle.args- Arguments to the message.tokenId-userIDfor which the exception occurred.isDn- whether the tokenId represents a DN or a usernamet- The root cause of the exception.
-
InvalidPasswordException
Constructs anInvalidPasswordExceptionobject.- Parameters:
e- an InvalidPasswordExceptionisDn- whether the tokenId contained in the parent exception is a DN
-
-
Method Details
-
getTokenId
Returns the token ID.- Returns:
- the token ID.
-
getUsername
Returns the username.- Returns:
- the username
-