com.highdeal.hci
Class InvalidPasswordException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.highdeal.hci.OperationFailureException
              extended by com.highdeal.hci.InvalidPasswordException
All Implemented Interfaces:
OperationResult, XMLMarshallable, java.io.Serializable

public class InvalidPasswordException
extends OperationFailureException

Exception thrown when an error occurs during the modification of the password of an SAP CC user.

The possible reasons are:

Note

The SAP CC system throws this exception only when the advanced password management feature is enabled.

See Also:
Serialized Form

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="invalidPasswordFault">
   <xs:complexType>
     <xs:attribute name="reason" type="invalidPasswordReason"/>
     <xs:attribute name="message" type="xs:string"/>
   </xs:complexType>
 </xs:element>

 <xs:simpleType name="invalidPasswordReason">
   <xs:restriction base="xs:string">
     <xs:enumeration value="empty"/>
     <xs:enumeration value="contains_login"/>
     <xs:enumeration value="minimum_length"/>
     <xs:enumeration value="complexity"/>
     <xs:enumeration value="mininum_age"/>
     <xs:enumeration value="reuse_delay"/>
     <xs:enumeration value="reuse_cycle"/>
   </xs:restriction>
 </xs:simpleType>


Field Summary
static int COMPLEXITY
          Constant for the complexity error.
static int CONTAINS_LOGIN
          Constant for the contains_login error.
static int EMPTY
          Constant for the empty error.
static int MINIMUM_LENGTH
          Constant for the minimum_length error.
static int MININUM_AGE
          Constant for the mininum_age error.
static int REUSE_CYCLE
          Constant for the reuse_cycle error.
static int REUSE_DELAY
          Constant for the reuse_delay error.
 
Constructor Summary
InvalidPasswordException()
          Constructs an empty exception.
InvalidPasswordException(int reason, java.lang.String message)
          Constructs an exception with a reason and a message.
 
Method Summary
 void addCharacterData(java.lang.String data)
          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 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 reason 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 reason of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final int EMPTY
Constant for the empty error.

See Also:
Constant Field Values

CONTAINS_LOGIN

public static final int CONTAINS_LOGIN
Constant for the contains_login error.

See Also:
Constant Field Values

MINIMUM_LENGTH

public static final int MINIMUM_LENGTH
Constant for the minimum_length error.

See Also:
Constant Field Values

COMPLEXITY

public static final int COMPLEXITY
Constant for the complexity error.

See Also:
Constant Field Values

MININUM_AGE

public static final int MININUM_AGE
Constant for the mininum_age error.

See Also:
Constant Field Values

REUSE_DELAY

public static final int REUSE_DELAY
Constant for the reuse_delay error.

See Also:
Constant Field Values

REUSE_CYCLE

public static final int REUSE_CYCLE
Constant for the reuse_cycle error.

See Also:
Constant Field Values
Constructor Detail

InvalidPasswordException

public InvalidPasswordException()
Constructs an empty exception.


InvalidPasswordException

public InvalidPasswordException(int reason,
                                java.lang.String message)
Constructs an exception with a reason and a message.

Parameters:
reason - the reason of the exception.
message - the message of the exception.
Method Detail

getReason

public int getReason()
Returns the reason of the exception.

Returns:
the reason of the exception.

getMessage

public java.lang.String getMessage()
Returns the message of the exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the message of the exception.

setReason

public void setReason(int reason)
Sets the reason of the exception.

Parameters:
reason - the reason of the exception.

setMessage

public void setMessage(java.lang.String message)
Sets the message of the exception.

Parameters:
message - the message of the exception.

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Parameters:
atts - The XML attributes of the current element

addCharacterData

public void addCharacterData(java.lang.String data)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Parameters:
data - The character data to be added

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Parameters:
tagName - The name of tag for the child
child - The child to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Parameters:
output - The XML output to marshal the object into

getOperandReference

public java.lang.String getOperandReference()
Description copied from interface: OperationResult
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.

Specified by:
getOperandReference in interface OperationResult
Overrides:
getOperandReference in class OperationFailureException
Returns:
The operand reference of the operation result

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)