org.apache.jetspeed.security
Class SecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.jetspeed.exception.JetspeedException
              extended by org.apache.jetspeed.security.SecurityException
All Implemented Interfaces:
java.io.Serializable, RequestDiagnosticsHolder
Direct Known Subclasses:
InvalidNewPasswordException, InvalidPasswordException, PasswordAlreadyUsedException

public class SecurityException
extends JetspeedException

Exception throwns by members of the security service.

Author:
David Le Strat
See Also:
Serialized Form

Field Summary
static KeyedMessage ANONYMOUS_USER_PROTECTED
          The anonymous user is protected exception message.
static KeyedMessage ATTRIBUTE_IS_READ_ONLY
           
static KeyedMessage ATTRIBUTE_IS_REQUIRED
           
static KeyedMessage ATTRIBUTES_ARE_READ_ONLY
           
static KeyedMessage ATTRIBUTES_NOT_EXTENDABLE
           
static KeyedMessage DEFAULT_SECURITY_DOMAIN_DOES_NOT_EXIST
           
static KeyedMessage DEPENDENT_PRINCIPAL_EXISTS
          Principal has one or more dependents.
static KeyedMessage EMPTY_PARAMETER
          Invalid password exception message.
static KeyedMessage ENTITY_ATTRIBUTE_MULTIVALUE_UNSUPPORTED
          Entity association attribute undefined
static KeyedMessage ENTITY_ATTRIBUTE_UNDEFINED
          Entity association attribute undefined
static KeyedMessage GROUP_ALREADY_EXISTS
          Deprecated. use #PRINCIPAL_ALREADY_EXIST with method KeyedMessage.createScoped(String, Object) instead
static KeyedMessage GROUP_DOES_NOT_EXIST
          Deprecated. use PRINCIPAL_DOES_NOT_EXIST with method KeyedMessage.createScoped(String, Object) instead
static KeyedMessage INCORRECT_PASSWORD
          Incorrect password exception message.
static KeyedMessage INVALID_AUTHENTICATION_PROVIDER
          Invalid authentication provider exception message.
static KeyedMessage INVALID_DN
          The dn is invalid.
static KeyedMessage INVALID_NEW_PASSWORD
          Invalid new password exception message.
static KeyedMessage INVALID_PASSWORD
          Invalid password exception message.
static KeyedMessage INVALID_UID
          The uid is invalid.
static KeyedMessage PASSWORD_ALREADY_USED
          Password already used exception message.
static KeyedMessage PASSWORD_REQUIRED
          Password required exception message.
static KeyedMessage PERMISSION_ALREADY_EXISTS
          Permission already exists exception message.
static KeyedMessage PERMISSION_DOES_NOT_EXIST
          Permission does not exist exception message.
static KeyedMessage PRINCIPAL_ALREADY_EXISTS
          Principal already exists exception message.
static KeyedMessage PRINCIPAL_ASSOCIATION_ALREADY_EXISTS
          Principal association already exist with principal
static KeyedMessage PRINCIPAL_ASSOCIATION_DOMINANT
          Principal association dominant for same types exception message.
static KeyedMessage PRINCIPAL_ASSOCIATION_DOMINANT_MIXED
          Principal association dominant for mixed types exception message.
static KeyedMessage PRINCIPAL_ASSOCIATION_REQUIRED
          Principal association required exception message.
static KeyedMessage PRINCIPAL_ASSOCIATION_SINGULAR
          Principal association singular for same types exception message.
static KeyedMessage PRINCIPAL_ASSOCIATION_SINGULAR_MIXED
          Principal association singular for mixed types exception message.
static KeyedMessage PRINCIPAL_ASSOCIATION_UNSUPPORTED
          Principal association is not supported exception message.
static KeyedMessage PRINCIPAL_DOES_NOT_EXIST
          Principal does not exist exception message.
static KeyedMessage PRINCIPAL_IS_READ_ONLY
          Principal is read only exception message.
static KeyedMessage PRINCIPAL_NOT_REMOVABLE
          Principal is not removable exception message.
static KeyedMessage PRINCIPAL_UPDATE_FAILURE
          Principal updating failed exception message.
static KeyedMessage ROLE_ALREADY_EXISTS
          Deprecated. use #PRINCIPAL_ALREADY_EXIST with method KeyedMessage.createScoped(String, Object) instead
static KeyedMessage ROLE_DOES_NOT_EXIST
          Deprecated. use PRINCIPAL_DOES_NOT_EXIST with method KeyedMessage.createScoped(String, Object) instead
static KeyedMessage SECURITY_DOMAIN_DOES_NOT_EXIST
           
static KeyedMessage SECURITY_DOMAIN_EXISTS
           
static KeyedMessage SECURITY_DOMAIN_NOT_REMOVABLE
           
static KeyedMessage SECURITY_DOMAIN_UPDATE_FAILURE
           
static KeyedMessage UNEXPECTED
          The anonymous user is protected exception message.
static KeyedMessage UNKNOWN_PRINCIPAL_TYPE
           
static KeyedMessage USER_ALREADY_EXISTS
          Deprecated. use PRINCIPAL_ALREADY_EXISTS with method KeyedMessage.createScoped(String, Object) instead
static KeyedMessage USER_DOES_NOT_EXIST
          Deprecated. use PRINCIPAL_DOES_NOT_EXIST with method KeyedMessage.createScoped(String, Object) instead
 
Fields inherited from class org.apache.jetspeed.exception.JetspeedException
KEYED_MESSAGE_BUNDLE
 
Constructor Summary
SecurityException()
          Default Constructor.
SecurityException(KeyedMessage typedMessage)
          Constructor with exception message.
SecurityException(KeyedMessage msg, java.lang.Throwable nested)
          Constructor with exception message and nested exception.
SecurityException(java.lang.Throwable t)
           
 
Method Summary
 
Methods inherited from class org.apache.jetspeed.exception.JetspeedException
getKeyedMessage, getMessage, getMessage, getMessage, getRequestDiagnostics, setRequestDiagnostics
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

PRINCIPAL_DOES_NOT_EXIST

public static final KeyedMessage PRINCIPAL_DOES_NOT_EXIST

Principal does not exist exception message.


PRINCIPAL_ALREADY_EXISTS

public static final KeyedMessage PRINCIPAL_ALREADY_EXISTS

Principal already exists exception message.


PRINCIPAL_IS_READ_ONLY

public static final KeyedMessage PRINCIPAL_IS_READ_ONLY

Principal is read only exception message.


PRINCIPAL_UPDATE_FAILURE

public static final KeyedMessage PRINCIPAL_UPDATE_FAILURE

Principal updating failed exception message.


PRINCIPAL_NOT_REMOVABLE

public static final KeyedMessage PRINCIPAL_NOT_REMOVABLE

Principal is not removable exception message.


DEPENDENT_PRINCIPAL_EXISTS

public static final KeyedMessage DEPENDENT_PRINCIPAL_EXISTS

Principal has one or more dependents.


PRINCIPAL_ASSOCIATION_REQUIRED

public static final KeyedMessage PRINCIPAL_ASSOCIATION_REQUIRED

Principal association required exception message.


PRINCIPAL_ASSOCIATION_SINGULAR

public static final KeyedMessage PRINCIPAL_ASSOCIATION_SINGULAR

Principal association singular for same types exception message.


PRINCIPAL_ASSOCIATION_DOMINANT

public static final KeyedMessage PRINCIPAL_ASSOCIATION_DOMINANT

Principal association dominant for same types exception message.


PRINCIPAL_ASSOCIATION_SINGULAR_MIXED

public static final KeyedMessage PRINCIPAL_ASSOCIATION_SINGULAR_MIXED

Principal association singular for mixed types exception message.


PRINCIPAL_ASSOCIATION_DOMINANT_MIXED

public static final KeyedMessage PRINCIPAL_ASSOCIATION_DOMINANT_MIXED

Principal association dominant for mixed types exception message.


PRINCIPAL_ASSOCIATION_ALREADY_EXISTS

public static final KeyedMessage PRINCIPAL_ASSOCIATION_ALREADY_EXISTS

Principal association already exist with principal


PRINCIPAL_ASSOCIATION_UNSUPPORTED

public static final KeyedMessage PRINCIPAL_ASSOCIATION_UNSUPPORTED

Principal association is not supported exception message.


PERMISSION_DOES_NOT_EXIST

public static final KeyedMessage PERMISSION_DOES_NOT_EXIST

Permission does not exist exception message.


PERMISSION_ALREADY_EXISTS

public static final KeyedMessage PERMISSION_ALREADY_EXISTS

Permission already exists exception message.


USER_ALREADY_EXISTS

public static final KeyedMessage USER_ALREADY_EXISTS
Deprecated. use PRINCIPAL_ALREADY_EXISTS with method KeyedMessage.createScoped(String, Object) instead

User principal already exists exception message.


USER_DOES_NOT_EXIST

public static final KeyedMessage USER_DOES_NOT_EXIST
Deprecated. use PRINCIPAL_DOES_NOT_EXIST with method KeyedMessage.createScoped(String, Object) instead

User principal does not exist exception message.


ROLE_ALREADY_EXISTS

public static final KeyedMessage ROLE_ALREADY_EXISTS
Deprecated. use #PRINCIPAL_ALREADY_EXIST with method KeyedMessage.createScoped(String, Object) instead

Role principal already exists exception message.


ROLE_DOES_NOT_EXIST

public static final KeyedMessage ROLE_DOES_NOT_EXIST
Deprecated. use PRINCIPAL_DOES_NOT_EXIST with method KeyedMessage.createScoped(String, Object) instead

Role principal does not exist exception message.


GROUP_ALREADY_EXISTS

public static final KeyedMessage GROUP_ALREADY_EXISTS
Deprecated. use #PRINCIPAL_ALREADY_EXIST with method KeyedMessage.createScoped(String, Object) instead

Group principal already exists exception message.


GROUP_DOES_NOT_EXIST

public static final KeyedMessage GROUP_DOES_NOT_EXIST
Deprecated. use PRINCIPAL_DOES_NOT_EXIST with method KeyedMessage.createScoped(String, Object) instead

Group principal does not exist exception message.


EMPTY_PARAMETER

public static final KeyedMessage EMPTY_PARAMETER

Invalid password exception message.


INVALID_PASSWORD

public static final KeyedMessage INVALID_PASSWORD

Invalid password exception message.


INVALID_NEW_PASSWORD

public static final KeyedMessage INVALID_NEW_PASSWORD

Invalid new password exception message.


INCORRECT_PASSWORD

public static final KeyedMessage INCORRECT_PASSWORD

Incorrect password exception message.


PASSWORD_REQUIRED

public static final KeyedMessage PASSWORD_REQUIRED

Password required exception message.


INVALID_AUTHENTICATION_PROVIDER

public static final KeyedMessage INVALID_AUTHENTICATION_PROVIDER

Invalid authentication provider exception message.


PASSWORD_ALREADY_USED

public static final KeyedMessage PASSWORD_ALREADY_USED

Password already used exception message.


ANONYMOUS_USER_PROTECTED

public static final KeyedMessage ANONYMOUS_USER_PROTECTED

The anonymous user is protected exception message.


UNEXPECTED

public static final KeyedMessage UNEXPECTED

The anonymous user is protected exception message.


INVALID_UID

public static final KeyedMessage INVALID_UID

The uid is invalid.


INVALID_DN

public static final KeyedMessage INVALID_DN

The dn is invalid.


UNKNOWN_PRINCIPAL_TYPE

public static final KeyedMessage UNKNOWN_PRINCIPAL_TYPE

ATTRIBUTE_IS_READ_ONLY

public static final KeyedMessage ATTRIBUTE_IS_READ_ONLY

ATTRIBUTE_IS_REQUIRED

public static final KeyedMessage ATTRIBUTE_IS_REQUIRED

ATTRIBUTES_ARE_READ_ONLY

public static final KeyedMessage ATTRIBUTES_ARE_READ_ONLY

ATTRIBUTES_NOT_EXTENDABLE

public static final KeyedMessage ATTRIBUTES_NOT_EXTENDABLE

SECURITY_DOMAIN_EXISTS

public static final KeyedMessage SECURITY_DOMAIN_EXISTS

SECURITY_DOMAIN_DOES_NOT_EXIST

public static final KeyedMessage SECURITY_DOMAIN_DOES_NOT_EXIST

SECURITY_DOMAIN_NOT_REMOVABLE

public static final KeyedMessage SECURITY_DOMAIN_NOT_REMOVABLE

SECURITY_DOMAIN_UPDATE_FAILURE

public static final KeyedMessage SECURITY_DOMAIN_UPDATE_FAILURE

DEFAULT_SECURITY_DOMAIN_DOES_NOT_EXIST

public static final KeyedMessage DEFAULT_SECURITY_DOMAIN_DOES_NOT_EXIST

ENTITY_ATTRIBUTE_UNDEFINED

public static final KeyedMessage ENTITY_ATTRIBUTE_UNDEFINED

Entity association attribute undefined


ENTITY_ATTRIBUTE_MULTIVALUE_UNSUPPORTED

public static final KeyedMessage ENTITY_ATTRIBUTE_MULTIVALUE_UNSUPPORTED

Entity association attribute undefined

Constructor Detail

SecurityException

public SecurityException()

Default Constructor.


SecurityException

public SecurityException(java.lang.Throwable t)

SecurityException

public SecurityException(KeyedMessage typedMessage)

Constructor with exception message.

Parameters:
message - The exception message.

SecurityException

public SecurityException(KeyedMessage msg,
                         java.lang.Throwable nested)

Constructor with exception message and nested exception.

Parameters:
msg - The exception message.
nested - Nested exception.


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.