public class PasswordPolicyImpl extends java.lang.Object implements PasswordPolicy
PasswordPolicy Control implementation.| Modifier and Type | Field and Description |
|---|---|
private boolean |
criticality
The criticality of this
Control |
private PasswordPolicyResponse |
response
The password policy response component if this is a response control
|
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 |
|---|---|
java.lang.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.
|
private boolean criticality
Controlprivate PasswordPolicyResponse response
public PasswordPolicyImpl()
public PasswordPolicyImpl(boolean hasResponse)
public PasswordPolicyImpl(PasswordPolicyResponse response)
public java.lang.String getOid()
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 false