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.
|
String |
toString()
Get a String representation of a PasswordPolicyImpl
|
public PasswordPolicyImpl()
public PasswordPolicyImpl(boolean hasResponse)
hasResponse
- A flag set to true if the control should have a responsepublic PasswordPolicyImpl(PasswordPolicyResponse response)
response
- The encapsulated responsepublic boolean isCritical()
isCritical
in interface Control
true
if the control is critical, false
otherwisepublic void setCritical(boolean isCritical)
setCritical
in interface Control
isCritical
- true if the control is critical false otherwise.public void setResponse(PasswordPolicyResponse response)
setResponse
in interface PasswordPolicy
response
- a valid response object, or null to make this a requestpublic boolean hasResponse()
hasResponse
in interface PasswordPolicy
public PasswordPolicyResponse setResponse(boolean hasResponse)
setResponse
in interface PasswordPolicy
hasResponse
- 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 PasswordPolicy
PasswordPolicy.hasResponse()
returns falseCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.