Package br.gov.frameworkdemoiselle.security

Source Code of br.gov.frameworkdemoiselle.security.InvalidCredentialsException

package br.gov.frameworkdemoiselle.security;

import br.gov.frameworkdemoiselle.util.Beans;
import br.gov.frameworkdemoiselle.util.NameQualifier;
import br.gov.frameworkdemoiselle.util.ResourceBundle;

/**
* Thrown when the user's credentials are invalid.
*
* @author SERPRO
*/
public class InvalidCredentialsException extends AuthenticationException {

  private static final long serialVersionUID = 1L;

  public InvalidCredentialsException() {
    super(Beans.getReference(ResourceBundle.class, new NameQualifier("demoiselle-core-bundle")).getString(
        "invalid-credentials"));
  }

  /**
   * Constructs an <code>InvalidCredentialsException</code> with a message.
   */
  public InvalidCredentialsException(String message) {
    super(message);
  }

  /**
   * Constructor with message and cause.
   *
   * @param message
   *            exception message
   * @param cause
   *            exception cause
   */
  public InvalidCredentialsException(String message, Throwable cause) {
    super(message, cause);
  }
}
TOP

Related Classes of br.gov.frameworkdemoiselle.security.InvalidCredentialsException

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.