public class AuthenticationFailedException extends OperationFailureException
SAP CC user that is the message originator.
The possible reasons are:
invalid_login_or_password: There is no match for the logon/password combination locked_user: The SAP CC user is locked expired_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 system invalid_permission: The SAP CC user does not have enough permissions to authenticate on the server system invalid_session_id: The session identifier specified in the XML envelope does not match any existing user session invalid_session_user: The SAP CC user specified is not linked to the specified session identifier session_limit_reached: There are too many sessions for the same user and tool password_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 enabledThe 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:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
CHANNEL_NOT_ALLOWED
9: Constant for the
channel_not_allowed error |
static int |
COMMUNICATION_ERROR
3: Constant for the
communication_error error |
static int |
EXPIRED_PASSWORD
1: Constant for the
expired_password error |
static int |
INVALID_LOGIN_OR_PASSWORD
0: Constant for the
invalid_login_or_password error |
static int |
INVALID_PERMISSION
4: Constant for the
invalid_permission error |
static int |
INVALID_SESSION_ID
5: Constant for the
invalid_session_id error |
static int |
INVALID_SESSION_USER
6: Constant for the
invalid_session_user error |
static int |
LOCKED_USER
2: Constant for the
locked_user error |
static int |
PASSWORD_CHANGE_NEEDED
8: Constant for the
password_change_needed error |
static int |
SESSION_LIMIT_REACHED
7: Constant for the
session_limit_reached error |
| Constructor and Description |
|---|
AuthenticationFailedException()
Constructs an empty exception.
|
AuthenticationFailedException(int reason,
java.lang.String message)
Constructs an exception with a reason and a message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getMessage()
Returns the text message of the exception.
|
java.lang.String |
getOperandReference()
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 is
null. |
int |
getReason()
Returns the numeric reason code of the exception.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setMessage(java.lang.String message)
Sets the message of the exception.
|
void |
setReason(int reason)
Sets the numeric reason code of the exception.
|
public static final int INVALID_LOGIN_OR_PASSWORD
invalid_login_or_password errorpublic static final int EXPIRED_PASSWORD
expired_password errorpublic static final int LOCKED_USER
locked_user errorpublic static final int COMMUNICATION_ERROR
communication_error errorpublic static final int INVALID_PERMISSION
invalid_permission errorpublic static final int INVALID_SESSION_ID
invalid_session_id errorpublic static final int INVALID_SESSION_USER
invalid_session_user errorpublic static final int SESSION_LIMIT_REACHED
session_limit_reached errorpublic static final int PASSWORD_CHANGE_NEEDED
password_change_needed errorpublic static final int CHANNEL_NOT_ALLOWED
channel_not_allowed errorpublic AuthenticationFailedException()
public AuthenticationFailedException(int reason,
java.lang.String message)
reason - The numerical reason code of the exceptionmessage - The text message of the exceptionpublic int getReason()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setReason(int reason)
reason - The numerical reason code of the exceptionpublic void setMessage(java.lang.String message)
message - The message of the exceptionpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic java.lang.String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultgetOperandReference in class OperationFailureException