|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyImpl
public class PasswordPolicyImpl
A simple PasswordPolicy Control implementation.
| Field Summary |
|---|
| Fields inherited from interface org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicy |
|---|
OID |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PasswordPolicyImpl()
public PasswordPolicyImpl(boolean hasResponse)
public PasswordPolicyImpl(PasswordPolicyResponse response)
| Method Detail |
|---|
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 it
public PasswordPolicyResponse getResponse()
PasswordPolicy.hasResponse() returns true, this will return a non-null
policy response object.
getResponse in interface PasswordPolicyPasswordPolicy.hasResponse()
returns false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||