Package com.highdeal.hci
Class AuthenticationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.hci.AuthenticationFailedException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when an error occurs during the authentication of the
SAP CC user that is the message originator.
Reasons
The possible reasons are:
invalid_login_or_password: There is no match for the logon/password combinationlocked_user: The SAP CC user is lockedexpired_password: The password of the SAP CC user has expired. This error can only occur if the advanced. password management feature is enabled.communication_error: A communication error occurred with the authentication server or with the database server systeminvalid_permission: The SAP CC user does not have enough permissions to authenticate on the server systeminvalid_session_id: The session identifier specified in the XML envelope does not match any existing user sessioninvalid_session_user: The SAP CC user specified is not linked to the specified session identifiersession_limit_reached: There are too many sessions for the same user and toolpassword_change_needed: The SAP CC user must change his password at his next logon. This error can only occur if the advanced password management feature is enabled.channel_not_allowed: The SAP CC user is a technical user (service user) and the user isolation feature is enabled
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="authenticationFailedFault">
<xs:complexType>
<xs:attribute name="reason" type="authenticationFailedReason"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="authenticationFailedReason">
<xs:restriction base="xs:string">
<xs:enumeration value="invalid_login_or_password"/>
<xs:enumeration value="expired_password"/>
<xs:enumeration value="locked_user"/>
<xs:enumeration value="communication_error"/>
<xs:enumeration value="invalid_permission"/>
<xs:enumeration value="invalid_session_id"/>
<xs:enumeration value="invalid_session_user"/>
<xs:enumeration value="session_limit_reached"/>
<xs:enumeration value="password_change_needed"/>
<xs:enumeration value="channel_not_allowed"/>
<xs:enumeration value="null_token"/>
<xs:enumeration value="invalid_token"/>
<xs:enumeration value="expired_token"/>
<xs:enumeration value="invalid_claim"/>
<xs:enumeration value="missing_certificate"/>
<xs:enumeration value="invalid_certificate"/>
<xs:enumeration value="invalid_delegation"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int9: Constant for thechannel_not_allowederrorstatic final int3: Constant for thecommunication_errorerrorstatic final int1: Constant for theexpired_passworderrorstatic final int12: Constant for theexpired_tokenerrorstatic final int15: Constant for theinvalid_certificateerrorstatic final int13: Constant for theinvalid_claimerrorstatic final int16: Constant for theinvalid_delegationerrorstatic final int0: Constant for theinvalid_login_or_passworderrorstatic final int4: Constant for theinvalid_permissionerrorstatic final int5: Constant for theinvalid_session_iderrorstatic final int6: Constant for theinvalid_session_usererrorstatic final int11: Constant for theinvalid_tokenerrorstatic final int2: Constant for thelocked_usererrorstatic final int14: Constant for themissing_certificateerrorstatic final int10: Constant for thenull_tokenerrorstatic final int8: Constant for thepassword_change_needederrorstatic final int7: Constant for thesession_limit_reachederror -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty exception.AuthenticationFailedException(int reason, String message) Constructs an exception with a reason and a message. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Returns the text message of the exception.Gets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.intReturns the numeric reason code of the exception.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetMessage(String message) Sets the message of the exception.voidsetReason(int reason) Sets the numeric reason code of the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_LOGIN_OR_PASSWORD
public static final int INVALID_LOGIN_OR_PASSWORD0: Constant for theinvalid_login_or_passworderror- See Also:
-
EXPIRED_PASSWORD
public static final int EXPIRED_PASSWORD1: Constant for theexpired_passworderror- See Also:
-
LOCKED_USER
public static final int LOCKED_USER2: Constant for thelocked_usererror- See Also:
-
COMMUNICATION_ERROR
public static final int COMMUNICATION_ERROR3: Constant for thecommunication_errorerror- See Also:
-
INVALID_PERMISSION
public static final int INVALID_PERMISSION4: Constant for theinvalid_permissionerror- See Also:
-
INVALID_SESSION_ID
public static final int INVALID_SESSION_ID5: Constant for theinvalid_session_iderror- See Also:
-
INVALID_SESSION_USER
public static final int INVALID_SESSION_USER6: Constant for theinvalid_session_usererror- See Also:
-
SESSION_LIMIT_REACHED
public static final int SESSION_LIMIT_REACHED7: Constant for thesession_limit_reachederror- See Also:
-
PASSWORD_CHANGE_NEEDED
public static final int PASSWORD_CHANGE_NEEDED8: Constant for thepassword_change_needederror- See Also:
-
CHANNEL_NOT_ALLOWED
public static final int CHANNEL_NOT_ALLOWED9: Constant for thechannel_not_allowederror- See Also:
-
NULL_TOKEN
public static final int NULL_TOKEN10: Constant for thenull_tokenerror- See Also:
-
INVALID_TOKEN
public static final int INVALID_TOKEN11: Constant for theinvalid_tokenerror- See Also:
-
EXPIRED_TOKEN
public static final int EXPIRED_TOKEN12: Constant for theexpired_tokenerror- See Also:
-
INVALID_CLAIM
public static final int INVALID_CLAIM13: Constant for theinvalid_claimerror- See Also:
-
MISSING_CERTIFICATE
public static final int MISSING_CERTIFICATE14: Constant for themissing_certificateerror- See Also:
-
INVALID_CERTIFICATE
public static final int INVALID_CERTIFICATE15: Constant for theinvalid_certificateerror- See Also:
-
INVALID_DELEGATION
public static final int INVALID_DELEGATION16: Constant for theinvalid_delegationerror- See Also:
-
-
Constructor Details
-
AuthenticationFailedException
public AuthenticationFailedException()Constructs an empty exception. -
AuthenticationFailedException
Constructs an exception with a reason and a message.- Parameters:
reason- The numerical reason code of the exceptionmessage- The text message of the exception
-
-
Method Details
-
getReason
public int getReason()Returns the numeric reason code of the exception.- Returns:
- The numerical reason code of the exception
-
getMessage
Returns the text message of the exception.- Overrides:
getMessagein classThrowable- Returns:
- The detailed message of the exception
-
setReason
public void setReason(int reason) Sets the numeric reason code of the exception.- Parameters:
reason- The numerical reason code of the exception
-
setMessage
Sets the message of the exception.- Parameters:
message- The message of the exception
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Parameters:
output- TheXML outputto marshal the object into
-
getOperandReference
Description copied from interface:OperationResultGets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.- Specified by:
getOperandReferencein interfaceOperationResult- Overrides:
getOperandReferencein classOperationFailureException- Returns:
- The operand reference of the operation result
-