| | |
| | | */ |
| | | private static ASN1OctetString encodeValue(int secondsBeforeExpiration) |
| | | { |
| | | |
| | | |
| | | ASN1Integer sbeInteger = new ASN1Integer(TYPE_SECONDS_BEFORE_EXPIRATION, |
| | | secondsBeforeExpiration); |
| | | |
| | |
| | | boolean isLocked, |
| | | int secondsBeforeUnlock) |
| | | { |
| | | |
| | | |
| | | ArrayList<ASN1Element> elements = new ArrayList<ASN1Element>(5); |
| | | |
| | | if (isInactive) |
| | |
| | | public static AccountUsableResponseControl decodeControl(Control control) |
| | | throws LDAPException |
| | | { |
| | | |
| | | |
| | | ASN1OctetString controlValue = control.getValue(); |
| | | if (controlValue == null) |
| | | { |
| | |
| | | */ |
| | | public boolean isUsable() |
| | | { |
| | | |
| | | return isUsable; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getSecondsBeforeExpiration() |
| | | { |
| | | |
| | | return secondsBeforeExpiration; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean isInactive() |
| | | { |
| | | |
| | | return isInactive; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean isReset() |
| | | { |
| | | |
| | | return isReset; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean isExpired() |
| | | { |
| | | |
| | | return isExpired; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getRemainingGraceLogins() |
| | | { |
| | | |
| | | return remainingGraceLogins; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean isLocked() |
| | | { |
| | | |
| | | return isLocked; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getSecondsBeforeUnlock() |
| | | { |
| | | |
| | | return secondsBeforeUnlock; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("AccountUsableResponseControl(isUsable="); |
| | | buffer.append(isUsable); |
| | | |