| | |
| | | public static LDAPPreReadRequestControl decodeControl(Control control) |
| | | throws LDAPException |
| | | { |
| | | |
| | | if (! control.hasValue()) |
| | | { |
| | | int msgID = MSGID_PREREADREQ_NO_CONTROL_VALUE; |
| | |
| | | private static ASN1OctetString encodeAttributes(LinkedHashSet<String> |
| | | rawAttributes) |
| | | { |
| | | |
| | | if (rawAttributes == null) |
| | | { |
| | | return new ASN1OctetString(new ASN1Sequence().encode()); |
| | |
| | | */ |
| | | public LinkedHashSet<String> getRawAttributes() |
| | | { |
| | | |
| | | return rawAttributes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setRawAttributes(LinkedHashSet<String> rawAttributes) |
| | | { |
| | | |
| | | if (rawAttributes == null) |
| | | { |
| | | this.rawAttributes = new LinkedHashSet<String>(); |
| | |
| | | */ |
| | | public LinkedHashSet<AttributeType> getRequestedAttributes() |
| | | { |
| | | |
| | | if (requestedAttributes == null) |
| | | { |
| | | returnAllOperationalAttrs = false; |
| | |
| | | */ |
| | | public boolean returnAllUserAttributes() |
| | | { |
| | | |
| | | if (requestedAttributes == null) |
| | | { |
| | | getRequestedAttributes(); |
| | |
| | | */ |
| | | public boolean returnAllOperationalAttributes() |
| | | { |
| | | |
| | | if (requestedAttributes == null) |
| | | { |
| | | getRequestedAttributes(); |
| | |
| | | */ |
| | | public boolean allowsAttribute(AttributeType attrType) |
| | | { |
| | | |
| | | if (requestedAttributes == null) |
| | | { |
| | | getRequestedAttributes(); |
| | |
| | | */ |
| | | public String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("LDAPPreReadRequestControl(criticality="); |
| | | buffer.append(isCritical()); |
| | | buffer.append(",attrs=\""); |