Package org.opends.server.types
Class ProxyAuthHelper
- java.lang.Object
-
- org.opends.server.types.ProxyAuthHelper
-
public final class ProxyAuthHelper extends Object
Helper for using proxy auth controls.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Entry
getAuthorizationEntryFromControl(ProxiedAuthV1RequestControl proxiedAuthControl)
Retrieves the authorization entry for the provided proxied authorization V1 control.static Entry
getAuthorizationEntryFromControl(ProxiedAuthV2RequestControl proxiedAuthControl)
Retrieves the authorization entry for this proxied authorization V2 control.
-
-
-
Method Detail
-
getAuthorizationEntryFromControl
public static Entry getAuthorizationEntryFromControl(ProxiedAuthV1RequestControl proxiedAuthControl) throws LdapException
Retrieves the authorization entry for the provided proxied authorization V1 control. It will also perform any necessary password policy checks to ensure that the associated user account is suitable for use in performing this processing.- Parameters:
proxiedAuthControl
- the proxied auth control- Returns:
- The entry for user specified as the authorization identity in this proxied authorization V1 control, or If the authorization DN is the null DN then a fake entry with null DN is returned.
- Throws:
LdapException
- If the target user does not exist or is not available for use, or if a problem occurs while making the determination.
-
getAuthorizationEntryFromControl
public static Entry getAuthorizationEntryFromControl(ProxiedAuthV2RequestControl proxiedAuthControl) throws LdapException
Retrieves the authorization entry for this proxied authorization V2 control. It will also perform any necessary password policy checks to ensure that the associated user account is suitable for use in performing this processing.- Parameters:
proxiedAuthControl
- the proxied auth control- Returns:
- The entry for user specified as the authorization identity in this proxied authorization V1 control. If the authorization DN is the null DN then a fake entry with null DN is returned.
- Throws:
LdapException
- If the target user does not exist or is not available for use, or if a problem occurs while making the determination.
-
-