Class AuthenticateUserOp
- All Implemented Interfaces:
MessageOperation,XMLMarshallable
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.
- If the
listAuthorizationsattribute is set totrue, the operation responseAuthenticateUserResultwill contain the list of user authorizations. - If either the
listFailuresattribute is set totrueor thetoolNameattribute is specified, theoperation responsewill contain up to 20 failed authentication attempts since the last connection.
User Session Management
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.
- If the maximum number of concurrent sessions has not been reached for the user/tool pair, a new user session is created and
a session identifier is generated and returned by the SAP CC Core Server system
(see
AuthenticateUserResult). - If the maximum number of concurrent sessions has not reached for the user/tool pair, an
AuthenticationFailedExceptionwith the reasonsession_already_existswill 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.
Other Related Operation
- See Also:
Operation Result
AuthenticateUserResult Operation Failure Exceptions
XML API for HCI
The 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="optional"/>
<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:attribute name="listObjectAccessRules" type="xs:boolean" use="optional" default="false"/>
</xs:complexType>
</xs:element>
Operation Availability
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 |
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe value of this constant is the XML tag name of this operation: "authenticateUser". -
Constructor Summary
Constructors -
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.booleanGets whether the operation must list theauthorizationsbooleanGets whether the operation must list the failed authentication attempts.booleanGets whether the operation must list theobject access rulesReturns the login of theSAP CC userthat is to be authenticated.getName()Gets the XML name of the service operation.Returns the password of theSAP CC userthat is to be authenticated.Gets the name of the tool (user interface) sending the operation.Gets the version of the client sending the operation.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.voidsetListAuthorizations(boolean listAuthorizations) Sets whether the operation must list theauthorizationsvoidsetListFailures(boolean listFailures) Sets whether the operation must list the failed authentication attempts.voidsetListObjectAccessRules(boolean oars) Sets whether the operation must list theobject access rulesvoidsetLoginID(String id) Sets the login of theSAP CC userthat is to be authenticated.voidsetPassword(String password) Sets the password of theSAP CC userthat is to be authenticated.voidsetToolName(String toolName) Sets the name of the tool (user interface) sending the operation.
-
Field Details
-
OPERATION_NAME
The value of this constant is the XML tag name of this operation: "authenticateUser".- See Also:
-
-
Constructor Details
-
AuthenticateUserOp
public AuthenticateUserOp()Creates an authentication operation.
-
-
Method Details
-
getName
Description copied from interface:MessageOperationGets the XML name of the service operation. This name identifies the operation request in the HCI messages. It is used to marshal theJava objectrepresenting 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
activateAllping
- Specified by:
getNamein interfaceMessageOperation- Returns:
- The technical name of the HCI operation
-
getLoginID
Returns the login of theSAP CC userthat is to be authenticated.- Returns:
- The login of the SAP CC user that is to be authenticated
-
setLoginID
Sets the login of theSAP CC userthat is to be authenticated.- Parameters:
id- The login of the SAP CC user that is to be authenticated
-
setPassword
Sets the password of theSAP CC userthat is to be authenticated.- Parameters:
password- The password of the SAP CC user that is to be authenticated
-
getPassword
Returns the password of theSAP CC userthat is to be authenticated.- Returns:
- The password of the SAP CC user that is to be authenticated
-
setToolName
Sets the name of the tool (user interface) sending the operation.- Parameters:
toolName- The name of the tool sending the operation
-
getToolName
Gets the name of the tool (user interface) sending the operation.- Returns:
- The name of the tool sending the operation
-
getVersion
Gets the version of the client sending the operation.- Returns:
- The version of the client sending the operation
-
setListFailures
public void setListFailures(boolean listFailures) Sets whether the operation must list the failed authentication attempts.- Parameters:
listFailures- Flag:trueif the operation must list the failed authentication attempts,falseotherwise
-
getListFailures
public boolean getListFailures()Gets whether the operation must list the failed authentication attempts.- Returns:
trueif the operation must list the failed authentication attempts,falseotherwise
-
getListAuthorizations
public boolean getListAuthorizations()Gets whether the operation must list theauthorizations- Returns:
trueif the operation must list the authorizations,falseotherwise
-
setListAuthorizations
public void setListAuthorizations(boolean listAuthorizations) Sets whether the operation must list theauthorizations- Parameters:
listAuthorizations-trueif the operation must list the authorizations,falseotherwise
-
getListObjectAccessRules
public boolean getListObjectAccessRules()Gets whether the operation must list theobject access rules- Returns:
trueif the operation must list the object access rules,falseotherwise
-
setListObjectAccessRules
public void setListObjectAccessRules(boolean oars) Sets whether the operation must list theobject access rules- Parameters:
oars-trueif the operation must list the object access rules,falseotherwise
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- 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.- Specified by:
addChildin interfaceXMLMarshallable- 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.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-