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
ConstructorDescriptionInvalidPasswordException
(InvalidPasswordException e, boolean isDn) Constructs anInvalidPasswordException
object.InvalidPasswordException
(String message) Constructs anInvalidPasswordException
object.InvalidPasswordException
(String message, String tokenId) Constructs anInvalidPasswordException
object.InvalidPasswordException
(String message, String tokenId, boolean isDn) Constructs anInvalidPasswordException
object.InvalidPasswordException
(String rbName, String errCode, Object[] args) Constructs anInvalidPasswordException
object.InvalidPasswordException
(String rbName, String errorCode, Object[] args, String tokenId, boolean isDn, Throwable t) Constructs anInvalidPasswordException
object.InvalidPasswordException
(String rbName, String errorCode, Object[] args, String tokenId, Throwable t) Constructs anInvalidPasswordException
object.Constructs anInvalidPasswordException
object. -
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, getResourceBundleName
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPasswordException
Constructs anInvalidPasswordException
object.- Parameters:
rbName
- Resource bundle name for the message.errCode
- Key to the message in resource bundle.args
- Arguments to the message.
-
InvalidPasswordException
Constructs anInvalidPasswordException
object.- Parameters:
message
- English message for the exception.
-
InvalidPasswordException
Constructs anInvalidPasswordException
object.- Parameters:
message
- English message for the exception.tokenId
- TheuserId
for which the exception occurred.
-
InvalidPasswordException
Constructs anInvalidPasswordException
object.- Parameters:
message
- English message for the exception.tokenId
- TheuserId
for which the exception occurred.isDn
- whether the tokenId represents a DN or a username
-
InvalidPasswordException
Constructs anInvalidPasswordException
object.- Parameters:
t
- the root cause of the exception
-
InvalidPasswordException
public InvalidPasswordException(String rbName, String errorCode, Object[] args, String tokenId, Throwable t) Constructs anInvalidPasswordException
object.- Parameters:
rbName
- Resource bundle name for the message.errorCode
- Key to the message in resource bundle.args
- Arguments to the message.tokenId
-userID
for 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 anInvalidPasswordException
object.- Parameters:
rbName
- Resource bundle name for the message.errorCode
- Key to the message in resource bundle.args
- Arguments to the message.tokenId
-userID
for which the exception occurred.isDn
- whether the tokenId represents a DN or a usernamet
- The root cause of the exception.
-
InvalidPasswordException
Constructs anInvalidPasswordException
object.- 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
-