| | |
| | | implements PreParseCompareOperation, PreOperationCompareOperation, |
| | | PostOperationCompareOperation, PostResponseCompareOperation |
| | | { |
| | | |
| | | |
| | | |
| | | // The attribute type for this compare operation. |
| | | private AttributeType attributeType; |
| | | |
| | |
| | | // The DN of the entry for the compare operation. |
| | | private DN entryDN; |
| | | |
| | | // The proxied authorization target DN for this operation. |
| | | private DN proxiedAuthorizationDN; |
| | | |
| | | // The entry to be compared. |
| | | private Entry entry; |
| | | |
| | |
| | | this.rawAttributeType = rawAttributeType; |
| | | this.assertionValue = assertionValue; |
| | | |
| | | responseControls = new ArrayList<Control>(); |
| | | entry = null; |
| | | entryDN = null; |
| | | attributeType = null; |
| | | cancelRequest = null; |
| | | responseControls = new ArrayList<Control>(); |
| | | entry = null; |
| | | entryDN = null; |
| | | attributeType = null; |
| | | cancelRequest = null; |
| | | proxiedAuthorizationDN = null; |
| | | } |
| | | |
| | | |
| | |
| | | this.attributeType = attributeType; |
| | | this.assertionValue = assertionValue; |
| | | |
| | | responseControls = new ArrayList<Control>(); |
| | | rawEntryDN = new ASN1OctetString(entryDN.toString()); |
| | | rawAttributeType = attributeType.getNameOrOID(); |
| | | cancelRequest = null; |
| | | entry = null; |
| | | responseControls = new ArrayList<Control>(); |
| | | rawEntryDN = new ASN1OctetString(entryDN.toString()); |
| | | rawAttributeType = attributeType.getNameOrOID(); |
| | | cancelRequest = null; |
| | | entry = null; |
| | | proxiedAuthorizationDN = null; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the proxied authorization DN for this operation if proxied |
| | | * authorization has been requested. |
| | | * |
| | | * @return The proxied authorization DN for this operation if proxied |
| | | * authorization has been requested, or {@code null} if proxied |
| | | * authorization has not been requested. |
| | | */ |
| | | public DN getProxiedAuthorizationDN() |
| | | { |
| | | return proxiedAuthorizationDN; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | |
| | | break compareProcessing; |
| | | } |
| | | setAuthorizationEntry(authorizationEntry); |
| | | if (authorizationEntry == null) |
| | | { |
| | | proxiedAuthorizationDN = DN.nullDN(); |
| | | } |
| | | else |
| | | { |
| | | proxiedAuthorizationDN = authorizationEntry.getDN(); |
| | | } |
| | | } |
| | | else if (oid.equals(OID_PROXIED_AUTH_V2)) |
| | | { |
| | |
| | | break compareProcessing; |
| | | } |
| | | setAuthorizationEntry(authorizationEntry); |
| | | if (authorizationEntry == null) |
| | | { |
| | | proxiedAuthorizationDN = DN.nullDN(); |
| | | } |
| | | else |
| | | { |
| | | proxiedAuthorizationDN = authorizationEntry.getDN(); |
| | | } |
| | | } |
| | | |
| | | // NYI -- Add support for additional controls. |