com.ibm.as400.access

Class AS400SecurityException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.ibm.as400.access.AS400SecurityException
    • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • PASSWORD_ERROR

        public static final int PASSWORD_ERROR
        The return code indicating that there is a general password error.
        See Also:
        Constant Field Values
      • PASSWORD_EXPIRED

        public static final int PASSWORD_EXPIRED
        The return code indicating that the password has expired.
        See Also:
        Constant Field Values
      • PASSWORD_INCORRECT

        public static final int PASSWORD_INCORRECT
        The return code indicating that the password is not correct.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • PASSWORD_LENGTH_NOT_VALID

        public static final int PASSWORD_LENGTH_NOT_VALID
        The return code indicating that the password length is not valid.
        See Also:
        Constant Field Values
      • PASSWORD_NEW_ADJACENT_DIGITS

        public static final int PASSWORD_NEW_ADJACENT_DIGITS
        The return code indicating that the new password has adjacent digits.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • PASSWORD_NEW_DISALLOWED

        public static final int PASSWORD_NEW_DISALLOWED
        The return code indicating that the new password is not allowed.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • PASSWORD_NEW_NOT_VALID

        public static final int PASSWORD_NEW_NOT_VALID
        The return code indicating that the new password is not valid.
        See Also:
        Constant Field Values
      • PASSWORD_NEW_PREVIOUSLY_USED

        public static final int PASSWORD_NEW_PREVIOUSLY_USED
        The return code indicating that the new password was previously used.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • PASSWORD_NOT_SET

        public static final int PASSWORD_NOT_SET
        The return code indicating that the password is not set.
        See Also:
        Constant Field Values
      • PASSWORD_OLD_NOT_VALID

        public static final int PASSWORD_OLD_NOT_VALID
        The return code indicating that the old password is not valid.
        See Also:
        Constant Field Values
      • SECURITY_GENERAL

        public static final int SECURITY_GENERAL
        The return code indicating that a general security failure occurred.
        See Also:
        Constant Field Values
      • SIGNON_CANCELED

        public static final int SIGNON_CANCELED
        The return code indicating that the user canceled out of the sign-on prompt.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • USERID_ERROR

        public static final int USERID_ERROR
        The return code indicating that a general user ID error occurred.
        See Also:
        Constant Field Values
      • USERID_LENGTH_NOT_VALID

        public static final int USERID_LENGTH_NOT_VALID
        The return code indicating that the user ID length is not valid.
        See Also:
        Constant Field Values
      • USERID_NOT_SET

        public static final int USERID_NOT_SET
        The return code indicating that the user ID is not set.
        See Also:
        Constant Field Values
      • USERID_DISABLE

        public static final int USERID_DISABLE
        The return code indicating that the user ID has been disabled by the system.
        See Also:
        Constant Field Values
      • USERID_UNKNOWN

        public static final int USERID_UNKNOWN
        The return code indicating that the user ID is not known by the system.
        See Also:
        Constant Field Values
      • EXIT_POINT_PROCESSING_ERROR

        public static final int EXIT_POINT_PROCESSING_ERROR
        The return code indicating that an error occurred processing the exit point.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • REQUEST_NOT_SUPPORTED

        public static final int REQUEST_NOT_SUPPORTED
        The return code indicating that the requested action is not supported.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • TOKEN_TYPE_NOT_VALID

        public static final int TOKEN_TYPE_NOT_VALID
        The return code indicating that the token type is not valid.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • TOKEN_LENGTH_NOT_VALID

        public static final int TOKEN_LENGTH_NOT_VALID
        The return code indicating that the token length is not valid.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • PASSWORD_PRE_V2R2

        public static final int PASSWORD_PRE_V2R2
        The return code indicating that the password has pre-V2R2 encryption.
        See Also:
        Constant Field Values
      • PASSWORD_NONE

        public static final int PASSWORD_NONE
        The return code indicating that the password is *NONE.
        See Also:
        Constant Field Values
      • PROFILE_TOKEN_NOT_VALID

        public static final int PROFILE_TOKEN_NOT_VALID
        The return code indicating that the profile token or identity token is not valid.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • KERBEROS_TICKET_NOT_VALID_CONSISTENCY

        public static final int KERBEROS_TICKET_NOT_VALID_CONSISTENCY
        The return code indicating that the authentication token is not valid. Consistency checks failed.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • KERBEROS_TICKET_NOT_VALID_SIGNATURE

        public static final int KERBEROS_TICKET_NOT_VALID_SIGNATURE
        The return code indicating that the authentication token is not valid. Kerberos token or identity token contains incorrect signature.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • KERBEROS_TICKET_NOT_VALID_EIM

        public static final int KERBEROS_TICKET_NOT_VALID_EIM
        The return code indicating that the authentication token is not valid. EIM configuration error detected.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • KERBEROS_TICKET_NOT_VALID_MULTIPLE_PROFILES

        public static final int KERBEROS_TICKET_NOT_VALID_MULTIPLE_PROFILES
        The return code indicating that the authentication token is not valid. Token maps to multiple user profile names.
        See Also:
        Constant Field Values
      • 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 retrieved.
        See Also:
        Constant Field Values
      • 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.
        See Also:
        Constant Field Values
      • USERID_MISMATCH

        public static final int USERID_MISMATCH
        The return code indicating that the user ID does not match the user profile associated with the authentication token.
        See Also:
        Constant Field Values
      • PASSWORD_NEW_VALIDATION_PROGRAM

        public static final int PASSWORD_NEW_VALIDATION_PROGRAM
        The return code indicating that the password validation program failed the request.
        See Also:
        Constant Field Values
      • GENERATE_TOKEN_AUTHORITY_INSUFFICIENT

        public static final int GENERATE_TOKEN_AUTHORITY_INSUFFICIENT
        The return code indicating that the user of this program does not have enough authority to generate a profile token for another user.
        See Also:
        Constant Field Values
      • GENERATE_TOKEN_CAN_NOT_CONNECT

        public static final int GENERATE_TOKEN_CAN_NOT_CONNECT
        The return code indicating that can not connect to the system EIM domain.
        See Also:
        Constant Field Values
      • GENERATE_TOKEN_CAN_NOT_CHANGE_CCSID

        public static final int GENERATE_TOKEN_CAN_NOT_CHANGE_CCSID
        The return code indicating that can not change the CCSID.
        See Also:
        Constant Field Values
      • GENERATE_TOKEN_CAN_NOT_OBTAIN_NAME

        public static final int GENERATE_TOKEN_CAN_NOT_OBTAIN_NAME
        The return code indicating that can not obtain the EIM registry name.
        See Also:
        Constant Field Values
      • GENERATE_TOKEN_NO_MAPPING

        public static final int GENERATE_TOKEN_NO_MAPPING
        The return code indicating that no mapping exists.
        See Also:
        Constant Field Values
      • SERVER_NO_MEMORY

        public static final int SERVER_NO_MEMORY
        The return code indicating that the system was not able to allocate space needed for authorization.
        See Also:
        Constant Field Values
      • SERVER_CONVERSION_ERROR

        public static final int SERVER_CONVERSION_ERROR
        The return code indicating that an error occurred on the system while converting data between code pages.
        See Also:
        Constant Field Values
      • SERVER_EIM_ERROR

        public static final int SERVER_EIM_ERROR
        The return code indicating that an error occurred on the system while using EIM interfaces.
        See Also:
        Constant Field Values
      • SERVER_CRYPTO_ERROR

        public static final int SERVER_CRYPTO_ERROR
        The return code indicating that an error occurred on the system while using cryptographic interfaces.
        See Also:
        Constant Field Values
      • SERVER_TOKEN_VERSION

        public static final int SERVER_TOKEN_VERSION
        The return code indicating that the system version does support the token version.
        See Also:
        Constant Field Values
      • SERVER_KEY_NOT_FOUND

        public static final int SERVER_KEY_NOT_FOUND
        The return code indicating that the system could not find the public key.
        See Also:
        Constant Field Values
      • PASSWORD_CHANGE_NOT_ALLOWED

        public static final int PASSWORD_CHANGE_NOT_ALLOWED
        The return code indicating that the password change is not allowed at this time.
        See Also:
        Constant Field Values
      • PASSWORD_VALUE_NOT_VALID

        public static final int PASSWORD_VALUE_NOT_VALID
        The return code indicating that the password value is not valid.
        See Also:
        Constant Field Values
    • 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.
      • AS400SecurityException

        protected AS400SecurityException(int returnCode,
                              java.lang.Throwable e)
        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.
        e - cause of the exception
    • Method Detail

      • getReturnCode

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

        public AS400Message[] getMessageList()
        Returns the list of messages associated with this exception.
        Returns:
        The list of AS400Messages associated with this exception. If no messages are available null will be returned.