com.sun.identity.authentication.spi
Class UserNamePasswordValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.security.GeneralSecurityException
              extended by javax.security.auth.login.LoginException
                  extended by com.sun.identity.authentication.spi.AuthLoginException
                      extended by com.sun.identity.authentication.spi.UserNamePasswordValidationException

public class UserNamePasswordValidationException
extends AuthLoginException

This class is for handling Exception that is thrown when the user name password validation plugin is failed or any invalid characters detected in user name.

See Also:
Serialized Form

Constructor Summary
UserNamePasswordValidationException(String message)
          Creates UserNamePasswordValidationException with given message.
UserNamePasswordValidationException(String rbName, String errorCode, Object[] args)
          Creates UserNamePasswordValidationException with the message from the given resource bundle, for a given error message key (errorCode) and using arguments to the message.
UserNamePasswordValidationException(Throwable t)
          Creates UserNamePasswordValidationException with given Throwable.
 
Method Summary
 
Methods inherited from class com.sun.identity.authentication.spi.AuthLoginException
getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleName, printStackTrace, printStackTrace, printStackTrace
 

Constructor Detail

UserNamePasswordValidationException

public UserNamePasswordValidationException(String rbName,
                                           String errorCode,
                                           Object[] args)
Creates UserNamePasswordValidationException with the message from the given resource bundle, for a given error message key (errorCode) and using arguments to the message.

Parameters:
rbName - Resource bundle name for the error message.
errorCode - Key to the message in resource bundle.
args - Arguments to the message.

UserNamePasswordValidationException

public UserNamePasswordValidationException(String message)
Creates UserNamePasswordValidationException with given message.

Parameters:
message - English message for the exception.

UserNamePasswordValidationException

public UserNamePasswordValidationException(Throwable t)
Creates UserNamePasswordValidationException with given Throwable.

Parameters:
t - the root cause of the exception