net.java.otr4j
Class OtrPolicyImpl
java.lang.Object
net.java.otr4j.OtrPolicyImpl
- All Implemented Interfaces:
- OtrPolicy
public class OtrPolicyImpl
- extends Object
- implements OtrPolicy
| Fields inherited from interface net.java.otr4j.OtrPolicy |
ALLOW_V1, ALLOW_V2, ERROR_START_AKE, NEVER, OPPORTUNISTIC, OTRL_POLICY_ALWAYS, OTRL_POLICY_DEFAULT, OTRL_POLICY_MANUAL, REQUIRE_ENCRYPTION, SEND_WHITESPACE_TAG, VERSION_MASK, WHITESPACE_START_AKE |
OtrPolicyImpl
public OtrPolicyImpl()
OtrPolicyImpl
public OtrPolicyImpl(int policy)
getPolicy
public int getPolicy()
- Specified by:
getPolicy in interface OtrPolicy
getAllowV1
public boolean getAllowV1()
- Specified by:
getAllowV1 in interface OtrPolicy
getAllowV2
public boolean getAllowV2()
- Specified by:
getAllowV2 in interface OtrPolicy
getErrorStartAKE
public boolean getErrorStartAKE()
- Specified by:
getErrorStartAKE in interface OtrPolicy
getRequireEncryption
public boolean getRequireEncryption()
- Specified by:
getRequireEncryption in interface OtrPolicy
getSendWhitespaceTag
public boolean getSendWhitespaceTag()
- Specified by:
getSendWhitespaceTag in interface OtrPolicy
getWhitespaceStartAKE
public boolean getWhitespaceStartAKE()
- Specified by:
getWhitespaceStartAKE in interface OtrPolicy
setAllowV1
public void setAllowV1(boolean value)
- Specified by:
setAllowV1 in interface OtrPolicy
setAllowV2
public void setAllowV2(boolean value)
- Specified by:
setAllowV2 in interface OtrPolicy
setErrorStartAKE
public void setErrorStartAKE(boolean value)
- Specified by:
setErrorStartAKE in interface OtrPolicy
setRequireEncryption
public void setRequireEncryption(boolean value)
- Specified by:
setRequireEncryption in interface OtrPolicy
setSendWhitespaceTag
public void setSendWhitespaceTag(boolean value)
- Specified by:
setSendWhitespaceTag in interface OtrPolicy
setWhitespaceStartAKE
public void setWhitespaceStartAKE(boolean value)
- Specified by:
setWhitespaceStartAKE in interface OtrPolicy
getEnableAlways
public boolean getEnableAlways()
- Specified by:
getEnableAlways in interface OtrPolicy
setEnableAlways
public void setEnableAlways(boolean value)
- Specified by:
setEnableAlways in interface OtrPolicy
getEnableManual
public boolean getEnableManual()
- Specified by:
getEnableManual in interface OtrPolicy
setEnableManual
public void setEnableManual(boolean value)
- Specified by:
setEnableManual in interface OtrPolicy
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2009 Beem-project.com. All Rights Reserved.