| | |
| | | */ |
| | | private static ASN1OctetString encodeValue(String authorizationID) |
| | | { |
| | | |
| | | |
| | | return new ASN1OctetString(authorizationID); |
| | | } |
| | | |
| | |
| | | */ |
| | | private static ASN1OctetString encodeValue(DN authorizationDN) |
| | | { |
| | | |
| | | |
| | | if (authorizationDN == null) |
| | | { |
| | | return new ASN1OctetString("dn:"); |
| | |
| | | Control control) |
| | | throws LDAPException |
| | | { |
| | | |
| | | |
| | | if (! control.hasValue()) |
| | | { |
| | | int msgID = MSGID_AUTHZIDRESP_NO_CONTROL_VALUE; |
| | |
| | | */ |
| | | public String getAuthorizationID() |
| | | { |
| | | |
| | | return authorizationID; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setAuthorizationID(String authorizationID) |
| | | { |
| | | |
| | | this.authorizationID = authorizationID; |
| | | setValue(encodeValue(authorizationID)); |
| | | } |
| | |
| | | */ |
| | | public String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("AuthorizationIdentityResponseControl(authzID=\""); |
| | | buffer.append(authorizationID); |
| | | buffer.append("\")"); |