public class PasswordPolicyImpl extends Object implements PasswordPolicy
PasswordPolicy Control implementation.OID| Constructor and Description |
|---|
PasswordPolicyImpl()
Creates a new instance of a PasswordPolicy request Control without any
response data associated with it.
|
PasswordPolicyImpl(boolean hasResponse)
Creates a new instance of a PasswordPolicy request Control without any
response data associated with it.
|
PasswordPolicyImpl(PasswordPolicyResponse response)
Creates a new instance of PasswordPolicy response Control with response
information packaged into the control.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getOid() |
PasswordPolicyResponse |
getResponse()
Get's the response component of this control if this control carries a
response.
|
boolean |
hasResponse()
Checks whether this Control is the password policy request or the response
by carrying with it an IPasswordPolicyResponse object.
|
boolean |
isCritical()
Tells if the control is critical or not.
|
void |
setCritical(boolean isCritical)
Sets the critical flag which determines whether or not this control is
critical for the correct operation of a request or response message.
|
PasswordPolicyResponse |
setResponse(boolean hasResponse)
If true sets the response to a default newly initialized response object.
|
void |
setResponse(PasswordPolicyResponse response)
Sets the response.
|
public PasswordPolicyImpl()
public PasswordPolicyImpl(boolean hasResponse)
public PasswordPolicyImpl(PasswordPolicyResponse response)
public boolean isCritical()
isCritical in interface Controltrue if the control is critical, false otherwisepublic void setCritical(boolean isCritical)
setCritical in interface ControlisCritical - true if the control is critical false otherwise.public void setResponse(PasswordPolicyResponse response)
setResponse in interface PasswordPolicyresponse - a valid response object, or null to make this a requestpublic boolean hasResponse()
hasResponse in interface PasswordPolicypublic PasswordPolicyResponse setResponse(boolean hasResponse)
setResponse in interface PasswordPolicyhasResponse - true to create default response, false to clear itpublic PasswordPolicyResponse getResponse()
PasswordPolicy.hasResponse() returns true, this will return a non-null
policy response object.getResponse in interface PasswordPolicyPasswordPolicy.hasResponse()
returns falseCopyright © 2021. All rights reserved.