public class InvalidPasswordException extends OperationFailureException
The possible reasons are:
Note
The SAP CC system throws this exception only when the advanced password management feature is enabled.
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>
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
InvalidPasswordException()
Constructs an empty exception.
|
InvalidPasswordException(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 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.
|
public static final int EMPTY
empty error.public static final int CONTAINS_LOGIN
contains_login error.public static final int MINIMUM_LENGTH
minimum_length error.public static final int COMPLEXITY
complexity error.public static final int MININUM_AGE
mininum_age error.public static final int REUSE_DELAY
reuse_delay error.public static final int REUSE_CYCLE
reuse_cycle error.public InvalidPasswordException()
public InvalidPasswordException(int reason,
java.lang.String message)
reason - the reason of the exception.message - the message of the exception.public int getReason()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setReason(int reason)
reason - the reason of the exception.public void setMessage(java.lang.String message)
message - the message of the exception.public void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String data)
XMLMarshallabledata - 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