|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class InvalidPasswordException
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.
Constructor Summary | |
---|---|
InvalidPasswordException(String message)
Constructs an InvalidPasswordException object. |
|
InvalidPasswordException(String message,
String tokenId)
Constructs an InvalidPasswordException object. |
|
InvalidPasswordException(String rbName,
String errCode,
Object[] args)
Constructs an InvalidPasswordException object. |
|
InvalidPasswordException(String rbName,
String errorCode,
Object[] args,
String tokenId,
Throwable t)
Constructs an InvalidPasswordException object. |
|
InvalidPasswordException(Throwable t)
Constructs an InvalidPasswordException object. |
Method Summary | |
---|---|
String |
getTokenId()
Returns the token ID. |
Methods inherited from class com.sun.identity.authentication.spi.AuthLoginException |
---|
getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleName, printStackTrace, printStackTrace, printStackTrace |
Constructor Detail |
---|
public InvalidPasswordException(String rbName, String errCode, Object[] args)
InvalidPasswordException
object.
rbName
- Resource bundle name for the message.errCode
- Key to the message in resource bundle.args
- Arguments to the message.public InvalidPasswordException(String message)
InvalidPasswordException
object.
message
- English message for the exception.public InvalidPasswordException(String message, String tokenId)
InvalidPasswordException
object.
message
- English message for the exception.tokenId
- The userId
for which the exception occurred.public InvalidPasswordException(Throwable t)
InvalidPasswordException
object.
t
- the root cause of the exceptionpublic InvalidPasswordException(String rbName, String errorCode, Object[] args, String tokenId, Throwable t)
InvalidPasswordException
object.
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.Method Detail |
---|
public String getTokenId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |