| | |
| | | */ |
| | | private static ASN1OctetString encodeValue(ASN1OctetString rawAuthorizationDN) |
| | | { |
| | | |
| | | ensureNotNull(rawAuthorizationDN); |
| | | |
| | | ArrayList<ASN1Element> elements = new ArrayList<ASN1Element>(1); |
| | |
| | | public static ProxiedAuthV1Control decodeControl(Control control) |
| | | throws LDAPException |
| | | { |
| | | |
| | | ensureNotNull(control); |
| | | |
| | | if (! control.isCritical()) |
| | |
| | | */ |
| | | public ASN1OctetString getRawAuthorizationDN() |
| | | { |
| | | |
| | | return rawAuthorizationDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setRawAuthorizationDN(ASN1OctetString rawAuthorizationDN) |
| | | { |
| | | |
| | | this.rawAuthorizationDN = rawAuthorizationDN; |
| | | |
| | | setValue(encodeValue(rawAuthorizationDN)); |
| | |
| | | public DN getAuthorizationDN() |
| | | throws DirectoryException |
| | | { |
| | | |
| | | if (authorizationDN == null) |
| | | { |
| | | authorizationDN = DN.decode(rawAuthorizationDN); |
| | |
| | | */ |
| | | public void setAuthorizationDN(DN authorizationDN) |
| | | { |
| | | |
| | | ensureNotNull(authorizationDN); |
| | | |
| | | this.authorizationDN = authorizationDN; |
| | |
| | | public Entry getAuthorizationEntry() |
| | | throws DirectoryException |
| | | { |
| | | |
| | | DN authzDN = getAuthorizationDN(); |
| | | if (authzDN.isNullDN()) |
| | | { |
| | |
| | | */ |
| | | public String toString() |
| | | { |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | toString(buffer); |
| | | return buffer.toString(); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("ProxiedAuthorizationV1Control(authorizationDN=\""); |
| | | rawAuthorizationDN.toString(buffer); |
| | | buffer.append("\")"); |