|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.unboundidds.controls.PasswordQualityRequirementValidationResult
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class PasswordQualityRequirementValidationResult
NOTE: This class is part of the Commercial Edition of the UnboundID LDAP SDK for Java. It is not available for use in applications that include only the Standard Edition of the LDAP SDK, and is not supported for use in conjunction with non-UnboundID products.This class provides a data structure that holds information about the result of attempting validation with a proposed password against a password quality requirement.
PasswordQualityRequirementValidationResult ::= SEQUENCE { passwordRequirement PasswordQualityRequirement, requirementSatisfied BOOLEAN, additionalInfo [0] OCTET STRING OPTIONAL }
Constructor Summary | |
---|---|
PasswordQualityRequirementValidationResult(PasswordQualityRequirement passwordRequirement,
boolean requirementSatisfied,
java.lang.String additionalInfo)
Creates a new password quality requirement validation result object with the provided information. |
Method Summary | |
---|---|
static PasswordQualityRequirementValidationResult |
decode(ASN1Element element)
Decodes the provided ASN.1 element as a password quality requirement validation result. |
ASN1Element |
encode()
Encodes this password quality requirement validation result object to an ASN.1 element. |
java.lang.String |
getAdditionalInfo()
Retrieves a message with additional information about the result of the validation of the proposed password with respect to the associated password quality requirement. |
PasswordQualityRequirement |
getPasswordRequirement()
Retrieves the password quality requirement to which this validation result applies. |
boolean |
requirementSatisfied()
Indicates whether the proposed password satisfied the constraints of the associated password quality requirement. |
java.lang.String |
toString()
Retrieves a string representation of this password quality requirement validation result. |
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of this password quality requirement validation result to the provided buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PasswordQualityRequirementValidationResult(PasswordQualityRequirement passwordRequirement, boolean requirementSatisfied, java.lang.String additionalInfo)
passwordRequirement
- The password quality requirement to which
this validation result applies. This must
not be null
.requirementSatisfied
- Indicates whether the proposed password
satisfied the constraints of the associated
password quality requirement.additionalInfo
- An optional message with additional
information about the result of the
validation for the proposed password with
respect to the associated password quality
requirement.Method Detail |
---|
public PasswordQualityRequirement getPasswordRequirement()
public boolean requirementSatisfied()
true
if the proposed password satisfied the constraints of
the associated password quality requirement, or false
if
not.public java.lang.String getAdditionalInfo()
null
if no additional information is
available.public ASN1Element encode()
public static PasswordQualityRequirementValidationResult decode(ASN1Element element) throws LDAPException
element
- The ASN.1 element to be decoded as a password quality
requirement validation result.
LDAPException
- If a problem is encountered while attempting to
decode the provided ASN.1 element.public java.lang.String toString()
toString
in class java.lang.Object
public void toString(java.lang.StringBuilder buffer)
buffer
- The buffer to which the information should be appended.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |