com.ibm.as400.access
Class AS400SecurityException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.as400.access.AS400SecurityException
All Implemented Interfaces:
ReturnCodeException, java.io.Serializable
Direct Known Subclasses:
AS400AuthenticationException

public class AS400SecurityException
extends java.lang.Exception
implements ReturnCodeException

The AS400SecurityException class represents an exception that indicates that a security or authority error has occurred.

See Also:
Serialized Form

Field Summary
static int DIRECTORY_ENTRY_ACCESS_DENIED
          The return code indicating that the user of this program does not have enough authority to access the directory entry.
static int EXIT_POINT_PROCESSING_ERROR
          The return code indicating that an error occurred processing the exit point.
static int EXIT_PROGRAM_CALL_ERROR
          The return code indicating that an error occurred with the user exit program call.
static int EXIT_PROGRAM_DENIED_REQUEST
          The return code indicating that the user exit program associated with the server job rejected the request.
static int EXIT_PROGRAM_NOT_AUTHORIZED
          The return code indicating that the user is not authorized to the exit program.
static int EXIT_PROGRAM_RESOLVE_ERROR
          The return code indicating that an error occurred resolving to the exit program.
static int GENERATE_TOKEN_REQUEST_NOT_VALID
          The return code indicating that the generate token request is not valid.
static int KERBEROS_TICKET_NOT_VALID_CONSISTENCY
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_CREDANTIAL_STRUCTURE
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_CREDENTIAL_NO_LONGER_VALID
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_CREDENTIAL_NOT_VALID
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_EIM
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_MECHANISM
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_MULTIPLE_PROFILES
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_RETRIEVE
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_SIGNATURE
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_SYSTEM_PROFILE
          The return code indicating that the Kerberos ticket is not valid.
static int KERBEROS_TICKET_NOT_VALID_VERIFICATION
          The return code indicating that the Kerberos ticket is not valid.
static int LIBRARY_AUTHORITY_INSUFFICIENT
          The return code indicating that the user of this program does not have enough authority to the library to perform the requested action.
static int OBJECT_AUTHORITY_INSUFFICIENT
          The return code indicating that the user of this program does not have enough authority to the resource to perform the requested action.
static int PASSWORD_CHANGE_REQUEST_NOT_VALID
          The return code indicating that the change password request is missing user ID, old password, or new password.
static int PASSWORD_ERROR
          The return code indicating that there is a general password error.
static int PASSWORD_EXPIRED
          The return code indicating that the password has expired.
static int PASSWORD_INCORRECT
          The return code indicating that the password is not correct.
static int PASSWORD_INCORRECT_USERID_DISABLE
          The return code indicating that the password is not correct and that the user ID will be disabled on the next sign-on attempt if the password is incorrect again.
static int PASSWORD_LENGTH_NOT_VALID
          The return code indicating that the password length is not valid.
static int PASSWORD_NEW_ADJACENT_DIGITS
          The return code indicating that the new password has adjacent digits.
static int PASSWORD_NEW_CHARACTER_NOT_VALID
          The return code indicating that the new password contains a character that is not valid.
static int PASSWORD_NEW_CONSECUTIVE_REPEAT_CHARACTER
          The return code indicating that the new password contains a character repeated consecutively.
static int PASSWORD_NEW_DISALLOWED
          The return code indicating that the new password is not allowed.
static int PASSWORD_NEW_NO_ALPHABETIC
          The return code indicating that the new password must contain at least one alphabetic.
static int PASSWORD_NEW_NO_NUMERIC
          The return code indicating that the new password must contain at least one numeric.
static int PASSWORD_NEW_NOT_VALID
          The return code indicating that the new password is not valid.
static int PASSWORD_NEW_PREVIOUSLY_USED
          The return code indicating that the new password was previously used.
static int PASSWORD_NEW_REPEAT_CHARACTER
          The return code indicating that the new password contains a character used more than once.
static int PASSWORD_NEW_SAME_POSITION
          The return code indicating that the new password contains the same character in the same position as the previous password.
static int PASSWORD_NEW_TOO_LONG
          The return code indicating that the new password is longer than maximum accepted length.
static int PASSWORD_NEW_TOO_SHORT
          The return code indicating that the new password is shorter than minimum accepted length.
static int PASSWORD_NEW_USERID
          The return code indicating that the new password contains a user ID as part of the password.
static int PASSWORD_NONE
          The return code indicating that the password is *NONE.
static int PASSWORD_NOT_SET
          The return code indicating that the password is not set.
static int PASSWORD_OLD_NOT_VALID
          The return code indicating that the old password is not valid.
static int PASSWORD_PRE_V2R2
          The return code indicating that the password has pre-V2R2 encryption.
static int PROFILE_TOKEN_NOT_VALID
          The return code indicating that the profile token is not valid.
static int PROFILE_TOKEN_NOT_VALID_MAXIMUM
          The return code indicating that the profile token is not valid.
static int PROFILE_TOKEN_NOT_VALID_NOT_REGENERABLE
          The return code indicating that the profile token is not valid.
static int PROFILE_TOKEN_NOT_VALID_TIMEOUT_NOT_VALID
          The return code indicating that the profile token is not valid.
static int PROFILE_TOKEN_NOT_VALID_TYPE_NOT_VALID
          The return code indicating that the profile token is not valid.
static int REQUEST_NOT_SUPPORTED
          The return code indicating that the requested action is not supported.
static int SECURITY_GENERAL
          The return code indicating that a general security failure occurred.
static int SIGNON_CANCELED
          The return code indicating that the user canceled out of the sign-on prompt.
static int SIGNON_CHAR_NOT_VALID
          The return code indicating that the user ID or password contains a character that is not valid.
static int SIGNON_REQUEST_NOT_VALID
          The return code indicating that the sign-on request is missing either the user ID or the password.
static int SPECIAL_AUTHORITY_INSUFFICIENT
          The return code indicating that the user of this program does not have enough special authority to perform the requested action.
static int SYSTEM_LEVEL_NOT_CORRECT
          The return code indicating that the requested action cannot be performed due to the system level not being correct.
static int TOKEN_LENGTH_NOT_VALID
          The return code indicating that the token length is not valid.
static int TOKEN_TYPE_NOT_VALID
          The return code indicating that the token type is not valid.
static int UNKNOWN
          The return code indicating that the exact cause of the failure is not known.
static int USERID_DISABLE
          The return code indicating that the user ID has been disabled by the system.
static int USERID_ERROR
          The return code indicating that a general user ID error occurred.
static int USERID_LENGTH_NOT_VALID
          The return code indicating that the user ID length is not valid.
static int USERID_NOT_SET
          The return code indicating that the user ID is not set.
static int USERID_UNKNOWN
          The return code indicating that the user ID is not known by the system.
 
Constructor Summary
protected AS400SecurityException(int returnCode)
          Constructs an AS400SecurityException.
 
Method Summary
 int getReturnCode()
          Returns the return code associated with this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRECTORY_ENTRY_ACCESS_DENIED

public static final int DIRECTORY_ENTRY_ACCESS_DENIED
The return code indicating that the user of this program does not have enough authority to access the directory entry.

EXIT_PROGRAM_NOT_AUTHORIZED

public static final int EXIT_PROGRAM_NOT_AUTHORIZED
The return code indicating that the user is not authorized to the exit program.

LIBRARY_AUTHORITY_INSUFFICIENT

public static final int LIBRARY_AUTHORITY_INSUFFICIENT
The return code indicating that the user of this program does not have enough authority to the library to perform the requested action.

OBJECT_AUTHORITY_INSUFFICIENT

public static final int OBJECT_AUTHORITY_INSUFFICIENT
The return code indicating that the user of this program does not have enough authority to the resource to perform the requested action.

PASSWORD_CHANGE_REQUEST_NOT_VALID

public static final int PASSWORD_CHANGE_REQUEST_NOT_VALID
The return code indicating that the change password request is missing user ID, old password, or new password.

PASSWORD_ERROR

public static final int PASSWORD_ERROR
The return code indicating that there is a general password error.

PASSWORD_EXPIRED

public static final int PASSWORD_EXPIRED
The return code indicating that the password has expired.

PASSWORD_INCORRECT

public static final int PASSWORD_INCORRECT
The return code indicating that the password is not correct.

PASSWORD_INCORRECT_USERID_DISABLE

public static final int PASSWORD_INCORRECT_USERID_DISABLE
The return code indicating that the password is not correct and that the user ID will be disabled on the next sign-on attempt if the password is incorrect again.

PASSWORD_LENGTH_NOT_VALID

public static final int PASSWORD_LENGTH_NOT_VALID
The return code indicating that the password length is not valid.

PASSWORD_NEW_ADJACENT_DIGITS

public static final int PASSWORD_NEW_ADJACENT_DIGITS
The return code indicating that the new password has adjacent digits.

PASSWORD_NEW_CONSECUTIVE_REPEAT_CHARACTER

public static final int PASSWORD_NEW_CONSECUTIVE_REPEAT_CHARACTER
The return code indicating that the new password contains a character repeated consecutively.

PASSWORD_NEW_DISALLOWED

public static final int PASSWORD_NEW_DISALLOWED
The return code indicating that the new password is not allowed.

PASSWORD_NEW_NO_ALPHABETIC

public static final int PASSWORD_NEW_NO_ALPHABETIC
The return code indicating that the new password must contain at least one alphabetic.

PASSWORD_NEW_NO_NUMERIC

public static final int PASSWORD_NEW_NO_NUMERIC
The return code indicating that the new password must contain at least one numeric.

PASSWORD_NEW_NOT_VALID

public static final int PASSWORD_NEW_NOT_VALID
The return code indicating that the new password is not valid.

PASSWORD_NEW_PREVIOUSLY_USED

public static final int PASSWORD_NEW_PREVIOUSLY_USED
The return code indicating that the new password was previously used.

PASSWORD_NEW_REPEAT_CHARACTER

public static final int PASSWORD_NEW_REPEAT_CHARACTER
The return code indicating that the new password contains a character used more than once.

PASSWORD_NEW_TOO_LONG

public static final int PASSWORD_NEW_TOO_LONG
The return code indicating that the new password is longer than maximum accepted length.

PASSWORD_NEW_TOO_SHORT

public static final int PASSWORD_NEW_TOO_SHORT
The return code indicating that the new password is shorter than minimum accepted length.

PASSWORD_NEW_USERID

public static final int PASSWORD_NEW_USERID
The return code indicating that the new password contains a user ID as part of the password.

PASSWORD_NOT_SET

public static final int PASSWORD_NOT_SET
The return code indicating that the password is not set.

PASSWORD_OLD_NOT_VALID

public static final int PASSWORD_OLD_NOT_VALID
The return code indicating that the old password is not valid.

SECURITY_GENERAL

public static final int SECURITY_GENERAL
The return code indicating that a general security failure occurred.

SIGNON_CANCELED

public static final int SIGNON_CANCELED
The return code indicating that the user canceled out of the sign-on prompt.

SIGNON_REQUEST_NOT_VALID

public static final int SIGNON_REQUEST_NOT_VALID
The return code indicating that the sign-on request is missing either the user ID or the password.

UNKNOWN

public static final int UNKNOWN
The return code indicating that the exact cause of the failure is not known. The detailed message may contain additional information.

USERID_ERROR

public static final int USERID_ERROR
The return code indicating that a general user ID error occurred.

USERID_LENGTH_NOT_VALID

public static final int USERID_LENGTH_NOT_VALID
The return code indicating that the user ID length is not valid.

USERID_NOT_SET

public static final int USERID_NOT_SET
The return code indicating that the user ID is not set.

USERID_DISABLE

public static final int USERID_DISABLE
The return code indicating that the user ID has been disabled by the system.

USERID_UNKNOWN

public static final int USERID_UNKNOWN
The return code indicating that the user ID is not known by the system.

EXIT_POINT_PROCESSING_ERROR

public static final int EXIT_POINT_PROCESSING_ERROR
The return code indicating that an error occurred processing the exit point.

EXIT_PROGRAM_RESOLVE_ERROR

public static final int EXIT_PROGRAM_RESOLVE_ERROR
The return code indicating that an error occurred resolving to the exit program.

EXIT_PROGRAM_DENIED_REQUEST

public static final int EXIT_PROGRAM_DENIED_REQUEST
The return code indicating that the user exit program associated with the server job rejected the request.

EXIT_PROGRAM_CALL_ERROR

public static final int EXIT_PROGRAM_CALL_ERROR
The return code indicating that an error occurred with the user exit program call.

REQUEST_NOT_SUPPORTED

public static final int REQUEST_NOT_SUPPORTED
The return code indicating that the requested action is not supported.

SYSTEM_LEVEL_NOT_CORRECT

public static final int SYSTEM_LEVEL_NOT_CORRECT
The return code indicating that the requested action cannot be performed due to the system level not being correct.

PASSWORD_NEW_SAME_POSITION

public static final int PASSWORD_NEW_SAME_POSITION
The return code indicating that the new password contains the same character in the same position as the previous password.

SPECIAL_AUTHORITY_INSUFFICIENT

public static final int SPECIAL_AUTHORITY_INSUFFICIENT
The return code indicating that the user of this program does not have enough special authority to perform the requested action.

TOKEN_TYPE_NOT_VALID

public static final int TOKEN_TYPE_NOT_VALID
The return code indicating that the token type is not valid.

GENERATE_TOKEN_REQUEST_NOT_VALID

public static final int GENERATE_TOKEN_REQUEST_NOT_VALID
The return code indicating that the generate token request is not valid.

TOKEN_LENGTH_NOT_VALID

public static final int TOKEN_LENGTH_NOT_VALID
The return code indicating that the token length is not valid.

PASSWORD_NEW_CHARACTER_NOT_VALID

public static final int PASSWORD_NEW_CHARACTER_NOT_VALID
The return code indicating that the new password contains a character that is not valid.

PASSWORD_PRE_V2R2

public static final int PASSWORD_PRE_V2R2
The return code indicating that the password has pre-V2R2 encryption.

PASSWORD_NONE

public static final int PASSWORD_NONE
The return code indicating that the password is *NONE.

PROFILE_TOKEN_NOT_VALID

public static final int PROFILE_TOKEN_NOT_VALID
The return code indicating that the profile token is not valid.

PROFILE_TOKEN_NOT_VALID_MAXIMUM

public static final int PROFILE_TOKEN_NOT_VALID_MAXIMUM
The return code indicating that the profile token is not valid. Maximum number of profile tokens for the system already generated.

PROFILE_TOKEN_NOT_VALID_TIMEOUT_NOT_VALID

public static final int PROFILE_TOKEN_NOT_VALID_TIMEOUT_NOT_VALID
The return code indicating that the profile token is not valid. Timeout interval is not valid.

PROFILE_TOKEN_NOT_VALID_TYPE_NOT_VALID

public static final int PROFILE_TOKEN_NOT_VALID_TYPE_NOT_VALID
The return code indicating that the profile token is not valid. Type of profile token is not valid.

PROFILE_TOKEN_NOT_VALID_NOT_REGENERABLE

public static final int PROFILE_TOKEN_NOT_VALID_NOT_REGENERABLE
The return code indicating that the profile token is not valid. Profile token is not regenerable.

KERBEROS_TICKET_NOT_VALID_CONSISTENCY

public static final int KERBEROS_TICKET_NOT_VALID_CONSISTENCY
The return code indicating that the Kerberos ticket is not valid. Consistency checks failed.

KERBEROS_TICKET_NOT_VALID_MECHANISM

public static final int KERBEROS_TICKET_NOT_VALID_MECHANISM
The return code indicating that the Kerberos ticket is not valid. Requested mechanisms are not supported by local system.

KERBEROS_TICKET_NOT_VALID_CREDENTIAL_NOT_VALID

public static final int KERBEROS_TICKET_NOT_VALID_CREDENTIAL_NOT_VALID
The return code indicating that the Kerberos ticket is not valid. Credentials are not available or are not valid for this context.

KERBEROS_TICKET_NOT_VALID_SIGNATURE

public static final int KERBEROS_TICKET_NOT_VALID_SIGNATURE
The return code indicating that the Kerberos ticket is not valid. Kerberos token contains incorrect signature.

KERBEROS_TICKET_NOT_VALID_CREDENTIAL_NO_LONGER_VALID

public static final int KERBEROS_TICKET_NOT_VALID_CREDENTIAL_NO_LONGER_VALID
The return code indicating that the Kerberos ticket is not valid. Credentials are no longer valid.

KERBEROS_TICKET_NOT_VALID_CREDANTIAL_STRUCTURE

public static final int KERBEROS_TICKET_NOT_VALID_CREDANTIAL_STRUCTURE
The return code indicating that the Kerberos ticket is not valid. Consistency checks on the credantial structure failed.

KERBEROS_TICKET_NOT_VALID_VERIFICATION

public static final int KERBEROS_TICKET_NOT_VALID_VERIFICATION
The return code indicating that the Kerberos ticket is not valid. Verification routine failed.

KERBEROS_TICKET_NOT_VALID_EIM

public static final int KERBEROS_TICKET_NOT_VALID_EIM
The return code indicating that the Kerberos ticket is not valid. EIM configuration error detected.

KERBEROS_TICKET_NOT_VALID_SYSTEM_PROFILE

public static final int KERBEROS_TICKET_NOT_VALID_SYSTEM_PROFILE
The return code indicating that the Kerberos ticket is not valid. Kerberos principal maps to a system profile which can not be used to sign on.

KERBEROS_TICKET_NOT_VALID_MULTIPLE_PROFILES

public static final int KERBEROS_TICKET_NOT_VALID_MULTIPLE_PROFILES
The return code indicating that the Kerberos ticket is not valid. Kerberos principal maps to multiple user profile names.

KERBEROS_TICKET_NOT_VALID_RETRIEVE

public static final int KERBEROS_TICKET_NOT_VALID_RETRIEVE
The return code indicating that the Kerberos ticket is not valid. Kerberos service ticket could not be retreived.

SIGNON_CHAR_NOT_VALID

public static final int SIGNON_CHAR_NOT_VALID
The return code indicating that the user ID or password contains a character that is not valid.
Constructor Detail

AS400SecurityException

protected AS400SecurityException(int returnCode)
Constructs an AS400SecurityException.

An AS400SecurityException indicates that a security error has occurred.

Parameters:
returnCode - The return code which identifies the message to be returned. Possible values are defined as constants on this class.
Method Detail

getReturnCode

public int getReturnCode()
Returns the return code associated with this exception.
Specified by:
getReturnCode in interface ReturnCodeException
Returns:
The return code.