org.granite.messaging.service.security
Class SecurityServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.granite.messaging.service.ServiceException
                  extended by org.granite.messaging.service.security.SecurityServiceException
All Implemented Interfaces:
Serializable

public class SecurityServiceException
extends ServiceException

Author:
Franck WOLFF
See Also:
Serialized Form

Field Summary
static String CODE_ACCESS_DENIED
          Code for illegal access to a service or method that requires special role or profile
static String CODE_AUTHENTICATION_FAILED
          Code for other types of authentication errors
static String CODE_INVALID_CREDENTIALS
          Code for invalid credentails (wrong username or password)
static String CODE_NOT_LOGGED_IN
          Code for illegal access to a service or method that requires authentication
static String CODE_SESSION_EXPIRED
          Code for user session timeout
 
Constructor Summary
SecurityServiceException(String code)
           
SecurityServiceException(String code, String message)
           
SecurityServiceException(String code, String message, String details)
           
 
Method Summary
static SecurityServiceException newAccessDeniedException()
           
static SecurityServiceException newAccessDeniedException(String message)
           
static SecurityServiceException newAccessDeniedException(String message, String details)
           
static SecurityServiceException newAuthenticationFailedException(String message)
           
static SecurityServiceException newInvalidCredentialsException()
           
static SecurityServiceException newInvalidCredentialsException(String message)
           
static SecurityServiceException newInvalidCredentialsException(String message, String details)
           
static SecurityServiceException newNotLoggedInException()
           
static SecurityServiceException newNotLoggedInException(String message)
           
static SecurityServiceException newNotLoggedInException(String message, String details)
           
static SecurityServiceException newSessionExpiredException()
           
static SecurityServiceException newSessionExpiredException(String message)
           
static SecurityServiceException newSessionExpiredException(String message, String details)
           
 
Methods inherited from class org.granite.messaging.service.ServiceException
getCode, getDetail, getExtendedData
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CODE_INVALID_CREDENTIALS

public static String CODE_INVALID_CREDENTIALS
Code for invalid credentails (wrong username or password)


CODE_AUTHENTICATION_FAILED

public static String CODE_AUTHENTICATION_FAILED
Code for other types of authentication errors


CODE_NOT_LOGGED_IN

public static String CODE_NOT_LOGGED_IN
Code for illegal access to a service or method that requires authentication


CODE_SESSION_EXPIRED

public static String CODE_SESSION_EXPIRED
Code for user session timeout


CODE_ACCESS_DENIED

public static String CODE_ACCESS_DENIED
Code for illegal access to a service or method that requires special role or profile

Constructor Detail

SecurityServiceException

public SecurityServiceException(String code)

SecurityServiceException

public SecurityServiceException(String code,
                                String message)

SecurityServiceException

public SecurityServiceException(String code,
                                String message,
                                String details)
Method Detail

newInvalidCredentialsException

public static SecurityServiceException newInvalidCredentialsException()

newInvalidCredentialsException

public static SecurityServiceException newInvalidCredentialsException(String message)

newInvalidCredentialsException

public static SecurityServiceException newInvalidCredentialsException(String message,
                                                                      String details)

newAuthenticationFailedException

public static SecurityServiceException newAuthenticationFailedException(String message)

newNotLoggedInException

public static SecurityServiceException newNotLoggedInException()

newNotLoggedInException

public static SecurityServiceException newNotLoggedInException(String message)

newNotLoggedInException

public static SecurityServiceException newNotLoggedInException(String message,
                                                               String details)

newSessionExpiredException

public static SecurityServiceException newSessionExpiredException()

newSessionExpiredException

public static SecurityServiceException newSessionExpiredException(String message)

newSessionExpiredException

public static SecurityServiceException newSessionExpiredException(String message,
                                                                  String details)

newAccessDeniedException

public static SecurityServiceException newAccessDeniedException()

newAccessDeniedException

public static SecurityServiceException newAccessDeniedException(String message)

newAccessDeniedException

public static SecurityServiceException newAccessDeniedException(String message,
                                                                String details)