public class AuthenticateUserOp extends Object implements MessageOperation
SAP CC user and to retrieve the assigned roles and granted authorization objects resulting
from the merge of all the roles assigned to the user.
listAuthorizations flag is set to true, the operation response
AuthenticateUserResult will contain the list of user authorizations.
listFailures flag or the toolName attribute is specifiedt, the
operation response will contain the list of failed authentication attempts since the last connection.
To implement the user session managment, you specify the name of the user interface that sends this operation (see the toolName option).
If the user session management function is enabled,
the SAP CC system checks if the maximum number of concurrent running sessions has been reached for this user and this tool.
AuthenticateUserResult).
AuthenticationFailedException with the reason
session_already_exists will be thrown.
The returned session identifier can be used later in the MessageOriginator
of an envelope to specify that it belongs to the user session.
A user session opened with this operation can be closed using the Disconnect User operation.
UserModel,
AuthorizationModel,
DisconnectUserOp AuthenticateUserResult AuthenticationFailedExceptionThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="authenticateUser">
<xs:complexType>
<xs:attribute name="login" type="xs:string" use="required"/>
<xs:attribute name="password" type="xs:string" use="required"/>
<xs:attribute name="toolName" type="xs:string" use="optional"/>
<xs:attribute name="version" type="xs:string" use="optional"/>
<xs:attribute name="listFailures" type="xs:boolean" use="optional" default="false"/>
<xs:attribute name="listAuthorizations" type="xs:boolean" use="optional" default="false"/>
</xs:complexType>
</xs:element>
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | Yes | No | No | No | Yes |
| Modifier and Type | Field and Description |
|---|---|
static String |
OPERATION_NAME
The value of this constant is the XML tag name of this operation: "authenticateUser".
|
| Constructor and Description |
|---|
AuthenticateUserOp()
Creates an authentication operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
boolean |
getListAuthorizations()
Gets whether the operation must list the
authorizations |
boolean |
getListFailures()
Gets whether the operation must list the failed authentication attempts.
|
String |
getLoginID()
Returns the login of the
SAP CC user that is to be authenticated. |
String |
getName()
Gets the XML name of the service operation.
|
String |
getPassword()
Returns the password of the
SAP CC user that is to be authenticated. |
String |
getToolName()
Gets the name of the tool (user interface) sending the operation.
|
String |
getVersion()
Gets the version of the client sending the operation.
|
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 |
setListAuthorizations(boolean listAuthorizations)
Sets whether the operation must list the
authorizations |
void |
setListFailures(boolean listFailures)
Sets whether the operation must list the failed authentication attempts.
|
void |
setLoginID(String id)
Sets the login of the
SAP CC user that is to be authenticated. |
void |
setPassword(String password)
Sets the password of the
SAP CC user that is to be authenticated. |
void |
setToolName(String toolName)
Sets the name of the tool (user interface) sending the operation.
|
public static final String OPERATION_NAME
public AuthenticateUserOp()
public String getName()
MessageOperationJava object representing an HCI operation into an XML representation that can
be exchanged via the HCI communication interface between your client application and the SAP CC system.
Example
activateAll
ping
getName in interface MessageOperationpublic String getLoginID()
SAP CC user that is to be authenticated.public void setLoginID(String id)
SAP CC user that is to be authenticated.id - The login of the SAP CC user that is to be authenticatedpublic void setPassword(String password)
SAP CC user that is to be authenticated.password - The password of the SAP CC user that is to be authenticatedpublic String getPassword()
SAP CC user that is to be authenticated.public void setToolName(String toolName)
toolName - The name of the tool sending the operationpublic String getToolName()
public String getVersion()
public void setListFailures(boolean listFailures)
listFailures - Flag: true if the operation must list the failed authentication attempts, false otherwisepublic boolean getListFailures()
true if the operation must list the failed authentication attempts, false otherwisepublic boolean getListAuthorizations()
authorizationstrue if the operation must list the authorizations, false otherwisepublic void setListAuthorizations(boolean listAuthorizations)
authorizationslistAuthorizations - true if the operation must list the authorizations, false otherwisepublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into