|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CSSErrorCodeIF
These are the methods that a customized exception class should implement. These methods allow for associating error codes to exceptions for better debugging.
CSSException
Method Summary | |
long |
getErrorCode()
Deprecated. |
void |
setErrorCode(long errorCode)
Deprecated. |
void |
setLocale(java.util.Locale locale)
Deprecated. |
java.lang.String |
toString()
Deprecated. |
Field Detail |
public static final long GENERAL_EXCEPTION
CSSErrorCodeIF.GENERAL_ERROR
Constant that specifies an abnormal behavior in the execution.
The value of this constant is "0".
public static final long ILLEGAL_ARGUMENT_EXCEPTION
CSSErrorCodeIF.INVALID_ARGUMENT_ERROR
Constant that specifies an illegal argument to a method.
The value of this constant is "1".
public static final long AUTHENTICATION_EXCEPTION
CSSErrorCodeIF.AUTHENTICATION_ERROR
Constant specifying an authentication exception. This implies that a user is found but the password does not match; in other words, the credentials are invalid.
The value of this constant is "2".
public static final long COMMUNICATION_EXCEPTION
CSSErrorCodeIF.COMMUNICATION_ERROR
Constant specifying that the directory could not be contacted and is not available for the request.
The value of this constant is "3".
public static final long INVALID_USER_EXCEPTION
CSSErrorCodeIF.INVALID_USER_ERROR
Constant specifying that the user specified does not exist, but existed at some time. This exception is likely to occur if the identity is passed in but no user can be found with that identity. The user might have been deleted.
The value of this constant is "4".
public static final long NO_PROVIDER_EXCEPTION
CSSErrorCodeIF.NO_PROVIDER_ERROR
Constant specifying that the provider does not exist. It is possible that the provider name specified does not match those that exist in the configuration.
The value of this constant is "5".
public static final long TOKEN_NOT_AVAILABLE_EXCEPTION
CSSErrorCodeIF.TOKEN_NOT_AVAILABLE_ERROR
Constant specifying that the token cannot be created or is not available.
The value of this constant is "6".
public static final long TOKEN_CANNOT_BE_ENCRYPTED
CSSErrorCodeIF.TOKEN_CANNOT_BE_ENCRYPTED_ERROR
Constant specifying that the information needed to create the token exists, hence the token has been created, but it cannot be encrypted.
The value of this constant is "7".
public static final long TOKEN_CANNOT_BE_DECRYPTED
CSSErrorCodeIF.TOKEN_CANNOT_BE_DECRYPTED_ERROR
Constant specifying that the token cannot be decrypted into useful information.
The value of this constant is "8".
public static final long CONFIGURATION_EXCEPTION
CSSErrorCodeIF.CONFIGURATION_ERROR
Constant specifying that the configuration cannot be retrieved, is not valid, or is corrupted.
The value of this constant is "9".
public static final long USER_NOT_FOUND_EXCEPTION
CSSErrorCodeIF.USER_NOT_FOUND_ERROR
Constant specifying that the user specified does not exist. This usually happens during authentication when no user is found with that loginName.
The value of this constant is "10".
public static final long TOKEN_NOT_ACCEPTED_EXCEPTION
CSSErrorCodeIF.TOKEN_NOT_ACCEPTED_ERROR
Constant that specifies that the token passed in from another source (another application) is not a valid token and therefore is rejected.
The value of this constant is "11".
public static final long INVALID_IDENTITY_EXCEPTION
CSSErrorCodeIF.INVALID_IDENTITY_ERROR
Constant specifying that the identity is invalid or not in the correct format.
The value of this constant is "0".
public static final long OPERATION_NOT_SUPPORTED_EXCEPTION
CSSErrorCodeIF.OPERATION_NOT_SUPPORTED_BY_PROVIDER_ERROR
Constant specifying that a particular provider does not support this operation.
The value of this constant is "13".
public static final long INVALID_GROUP_EXCEPTION
CSSErrorCodeIF.INVALID_GROUP_ERROR
Constant specifying that the group specified does not exist. This exception might occur if the identity is passed in but no group could be found with that identity. The group may have been deleted.
The value of this constant is "14".
public static final long DIRECTORY_UNTRUSTED_EXCEPTION
CSSErrorCodeIF.DIRECTORY_UNTRUSTED_ERROR
Constant specifying that the directory is untrusted and the required operation cannot be performed. This exception might occur if the token does not carry the password for a user based in a directory that is not trusted.
The value of this constant is "15".
public static final long SECURITY_AGENT_NOT_CONFIGURED
CSSErrorCodeIF.SECURITY_AGENT_NOT_CONFIGURED_ERROR
Constant specifying that the Security Agent is not configured but header is passed in.
The value of this constant is "16".
public static final long USER_NOT_PROVISIONED_EXCEPTION
CSSErrorCodeIF.USER_NOT_PROVISIONED_ERROR
Constant specifying that the User is not provisioned.
The value of this constant is "17".
public static final long GROUP_NOT_PROVISIONED_EXCEPTION
CSSErrorCodeIF.GROUP_NOT_PROVISIONED_ERROR
Constant specifying that the Group is not provisioned.
The value of this constant is "18".
public static final long INVALID_PRINCIPAL_EXCEPTION
CSSErrorCodeIF.INVALID_PRINCIPAL_ERROR
Constant specifying that the principal specified does not exist, but existed at some time. This exception is likely to occur if the identity is passed in but no user can be found with that identity. The user might have been deleted.
The value of this constant is "19".
public static final long ENTITY_ALREADY_EXISTS_EXCEPTION
CSSErrorCodeIF.ENTITY_ALREADY_EXISTS_ERROR
Constant specifying that the entity already exists..
The value of this constant is "20".
public static final long INVALID_ROLE_EXCEPTION
CSSErrorCodeIF.INVALID_ROLE_ERROR
Constant specifying that the role specified does not exist, but existed at some time. This exception is likely to occur if the identity is passed in but no role can be found with that identity. The role might have been deleted.
The value of this constant is "21".
public static final long ROLLBACK_EXCEPTION
CSSErrorCodeIF.INVALID_ROLE_ERROR
Constant specifying that enveloping transacation needs to be rolled back.
The value of this constant is "22".
public static final long BAD_PASSWORD
CSSErrorCodeIF.BAD_PASSWORD_ERROR
public static final long ACCOUNT_LOCKED
CSSErrorCodeIF.ACCOUNT_LOCKED_ERROR
public static final long PASSWORD_CHANGE_REQUIRED
CSSErrorCodeIF.PASSWORD_CHANGE_REQUIRED_ERROR
public static final long PASSWORD_EXPIRED
CSSErrorCodeIF.PASSWORD_EXPIRED_ERROR
public static final long PASSWORD_EXPIRY_WARNING
CSSErrorCodeIF.PASSWORD_EXPIRY_ERROR
public static final long PASSWORD_GRACE_LOGIN_MODE
CSSErrorCodeIF.PASSWORD_GRACE_LOGIN_MODE_ERROR
public static final long IP_ACCOUNT_LOCKED
CSSErrorCodeIF.ACCOUNT_IP_LOCKED_ERROR
public static final long ACCOUNT_DISABLED
CSSErrorCodeIF.ACCOUNT_DISABLED
public static final long ACCOUNT_INACTIVE
CSSErrorCodeIF.ACCOUNT_INACTIVE
public static final long NULL_PASSWORD
CSSErrorCodeIF.NULL_PASSWORD
public static final long PASSWORD_POLICY_ERROR
CSSErrorCodeIF.PASSWORD_POLICY_ERROR
public static final long PASSWORD_MIN_LENGTH_VIOLATION
CSSErrorCodeIF.PASSWORD_MIN_LENGTH_VIOLATION_ERROR
public static final long PASSWORD_ALPHA_NUMERIC_VIOLATION
CSSErrorCodeIF.PASSWORD_ALPHA_NUMERIC_VIOLATION_ERROR
public static final long ILLEGAL_PASSWORD
CSSErrorCodeIF.PASSWORD_ILLEGAL_ERROR
public static final long PASSWORD_MUST_CHANGE
CSSErrorCodeIF.PASSWORD_CHANGE_REQUIRED_ERROR
public static final long ACCT_LOCKED
CSSErrorCodeIF.ACCOUNT_LOCKED_ERROR
public static final long PASSWORD_HAS_EXPIRED
CSSErrorCodeIF.PASSWORD_EXPIRED_ERROR
public static final long PASSWORD_MAX_RPT_CHARS_VIOLATION
CSSErrorCodeIF.PASSWORD_MAX_RPT_CHARS_VIOLATION_ERROR
public static final long PASSWORD_MIN_UPPERCASE_VIOLATION
CSSErrorCodeIF.PASSWORD_MIN_UPPERCASE_VIOLATION_ERROR
public static final long PASSWORD_MIN_LOWERCASE_VIOLATION
CSSErrorCodeIF.PASSWORD_MIN_LOWERCASE_VIOLATION_ERROR
public static final long PASSWORD_MIN_SPECIAL_CHARS_VIOLATION
CSSErrorCodeIF.PASSWORD_MIN_SPECIAL_CHARS_VIOLATION_ERROR
public static final long PASSWORD_MIN_ALPHABETIC_CHARS_VIOLATION
CSSErrorCodeIF.PASSWORD_MIN_ALPHABETIC_CHARS_VIOLATION_ERROR
public static final long AUTHORIZATION_EXCEPTION
CSSErrorCodeIF.PASSWORD_MIN_ALPHABETIC_CHARS_VIOLATION_ERROR
AUTHORIZATION_ERROR}
Constant specifying an authorization exception.
The value of this constant is "60".
public static final long PASSWORD_IN_HISTORY_VIOLATION
CSSErrorCodeIF.PASSWORD_IN_HISTORY_VIOLATION_ERROR
public static final long PASSWORD_MIN_AGE_SELFMODIFY
CSSErrorCodeIF.PASSWORD_MIN_AGE_SELFMODIFY_ERROR
public static final long METHOD_NOT_IMPELEMENTED_EXCEPTION
CSSErrorCodeIF.METHOD_NOT_IMPELEMENTED_ERROR
Constant specifying that a method is not implemented
The value of this constant is "90".
public static final long CIRCULAR_DEPENDENCY_EXCEPTION
CSSErrorCodeIF.CIRCULAR_DEPENDENCY_ERROR
Constant specifying a circular dependency exception.
The value of this constant is "70".
public static final long REGISTRATION_EXCEPTION
CSSErrorCodeIF.REGISTRATION_ERROR
Constant specifying a registration exception.
The value of this constant is "80".
public static final long TWO_SECURITY_AGENTS_SPECIFIED
CSSErrorCodeIF.TWO_SECURITY_AGENTS_SPECIFIED_ERROR
Constant specifying that two agent, Netegrity & Kerberos were both specified in login context. Only 1 may be specified. .
The value of this constant is "80".
public static final long INVALID_DELEGATED_LIST_EXCEPTION
CSSErrorCodeIF.INVALID_DELEGATED_LIST_ERROR
Constant specifying that the delegated list specified does not exist, but existed at some time. This exception is likely to occur if the identity is passed in but no delegated list can be found with that identity. The role delegated have been deleted.
The value of this constant is "82".
Method Detail |
public java.lang.String toString()
The string representation of this throwable.
public long getErrorCode()
Returns the error code. This code might be application specified and dependent due to the exception.
public void setErrorCode(long errorCode)
Sets the error code
errorCode
- Specifies the type of error and is associated with an exception class.public void setLocale(java.util.Locale locale)
Sets the locale for exception messages.
You must set the locale before invoking
the CSSException.getMessage(long)
.
locale
- The name of the geographical or cultural locale object defined in java.util.Locale.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |