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
@SupportedAll public class InvalidPasswordException extends AuthLoginException
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 theuserTokenId
so that subsequent calls togetUserTokenId
will return correctuserTokenId
that will be use to lock out the user.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidPasswordException(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.InvalidPasswordException(Throwable t)
Constructs anInvalidPasswordException
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTokenId()
Returns the token ID.String
getUsername()
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 Detail
-
InvalidPasswordException
public InvalidPasswordException(String rbName, String errCode, Object[] args)
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
public InvalidPasswordException(String message)
Constructs anInvalidPasswordException
object.- Parameters:
message
- English message for the exception.
-
InvalidPasswordException
public InvalidPasswordException(String message, String tokenId)
Constructs anInvalidPasswordException
object.- Parameters:
message
- English message for the exception.tokenId
- TheuserId
for which the exception occurred.
-
InvalidPasswordException
public InvalidPasswordException(String message, String tokenId, boolean isDn)
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
public InvalidPasswordException(Throwable t)
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
public InvalidPasswordException(InvalidPasswordException e, boolean isDn)
Constructs anInvalidPasswordException
object.- Parameters:
e
- an InvalidPasswordExceptionisDn
- whether the tokenId contained in the parent exception is a DN
-
-