| | |
| | | public static ProxiedAuthV2Control decodeControl(Control control) |
| | | throws LDAPException |
| | | { |
| | | |
| | | ensureNotNull(control); |
| | | |
| | | if (! control.isCritical()) |
| | |
| | | */ |
| | | public ASN1OctetString getAuthorizationID() |
| | | { |
| | | |
| | | return authorizationID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setAuthorizationID(ASN1OctetString authorizationID) |
| | | { |
| | | |
| | | if (authorizationID == null) |
| | | { |
| | | this.authorizationID = new ASN1OctetString(); |
| | |
| | | public Entry getAuthorizationEntry() |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | // Check for a zero-length value, which would be for an anonymous user. |
| | | if (authorizationID.value().length == 0) |
| | | { |
| | |
| | | */ |
| | | public String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("ProxiedAuthorizationV2Control(authzID=\""); |
| | | authorizationID.toString(buffer); |
| | | buffer.append("\")"); |