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() |
void |
setCritical(boolean isCritical) |
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 String getOid()
getOid in interface org.apache.directory.api.ldap.model.message.Controlpublic boolean isCritical()
isCritical in interface org.apache.directory.api.ldap.model.message.Controlpublic void setCritical(boolean isCritical)
setCritical in interface org.apache.directory.api.ldap.model.message.Controlpublic 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 © 2003–2015 The Apache Software Foundation. All rights reserved.