public class AuthenticateUserResult extends java.lang.Object implements OperationResult
Authenticate User operation;
It contains the definition of the authenticated SAP CC user with
granted authorization.
If the advanced password management feature is enabled, this result will also contain the time left before the expiration of the password of the user.
If user sessions are enabled and if a tool name was specified in the corresponding
Authenticate User operation request, this result contains a session identifier generated
by the connected SAP CC system, which identifies a session for the SAP CC user and tool specified in the authentication operation.
The session identifier returned by this result can be used later in the MessageOriginator
of an envelope to specify that it belongs to the user session.
If the corresponding Authenticate User operation
has the attribute toolName set
or has the attribute listFailures set to true,
the authentication result will also contain up to 20 failed
authentication attempts which occurred
since the last successful authentication with a similar configuration, starting from the oldest ones.
The result depends on the values of the PASSWORD_MANAGEMENT_ENABLED and USER_SESSION_ENABLED system parameters.
Use the SAP CC Admin+ user interface and the get>/code> command to retrieve the
current values in the running SAP CC system.
Consult the SAP CC Configuration Guide for more information about the settings for the management of SAP CC users.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="authenticateUserResult">
<xs:complexType>
<xs:sequence>
<xs:element ref="user" minOccurs="0" maxOccurs="1"/>
<xs:element ref="authorization" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="failedAuthentication" minOccurs="0" maxOccurs="20">
<xs:complexType>
<xs:attribute name="recordDate" type="xs:dateTime" use="required" />
<xs:attribute name="sourceAddress" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="passwordExpiration" type="xs:decimal"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthenticateUserResult.FailedAuthenticationModel
Represents a failed authentication attempt, including a record date and a source address.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPERATION_NAME |
| Constructor and Description |
|---|
AuthenticateUserResult() |
| 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.util.List<AuthorizationModel> |
getAuthorizations()
Gets the list of
authorization identifiers of the SAP CC user |
java.util.Vector<AuthenticateUserResult.FailedAuthenticationModel> |
getFailedAuthentications()
Gets the list of failed authentication attempts
|
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 |
getPasswordExpiration()
Gets the delay before expiration of the password
|
java.lang.String |
getSessionId()
Gets the user session identifier
|
UserModel |
getUser()
Gets the user definition
|
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 |
setFailedAuthentications(java.util.Vector<AuthenticateUserResult.FailedAuthenticationModel> failedAuthentications)
Sets the list of failed authentication attempts
|
void |
setPasswordExpiration(int passwordExpiration)
Sets the delay before expiration of the password
|
void |
setSessionId(java.lang.String sessionId)
Sets the user session identifier
|
void |
setUser(XMLMarshallable userModel)
Sets the user definition
|
public static final java.lang.String OPERATION_NAME
public UserModel getUser()
public int getPasswordExpiration()
public java.lang.String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultpublic void setUser(XMLMarshallable userModel)
userModel - The user definitionpublic java.util.List<AuthorizationModel> getAuthorizations()
authorization identifiers of the SAP CC userpublic java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId - The user session identifierpublic void setPasswordExpiration(int passwordExpiration)
passwordExpiration - The delay before expiration of the passwordpublic java.util.Vector<AuthenticateUserResult.FailedAuthenticationModel> getFailedAuthentications()
public void setFailedAuthentications(java.util.Vector<AuthenticateUserResult.FailedAuthenticationModel> failedAuthentications)
failedAuthentications - The list of failed authentication attemptspublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface 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.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