Package org.eclipse.emf.cdo.spi.server
Class AuthenticationUtil
java.lang.Object
org.eclipse.emf.cdo.spi.server.AuthenticationUtil
Static utility methods for binding
authentication protocols
to the current thread.- Since:
- 4.3
- Author:
- Christian W. Damus (CEA LIST)
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Encapsulation of an administrative operation requiring (potentially) client authentication to authorize the operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> Callable<V>
authenticatingOperation
(IAuthenticationProtocol authenticationProtocol, Callable<V> operation) Wrap anoperation
to make an authentication protocol available to the thread that invokes it, for the duration of theoperation
's execution.static IAuthenticationProtocol
Obtains the authentication protocol, if any, on which the current thread should authenticate administrative operations in handling incoming signals.
-
Method Details
-
getAuthenticationProtocol
Obtains the authentication protocol, if any, on which the current thread should authenticate administrative operations in handling incoming signals.- Returns:
- the authentication protocol to use, or
null
if authentication is not required
-
authenticatingOperation
public static <V> Callable<V> authenticatingOperation(IAuthenticationProtocol authenticationProtocol, Callable<V> operation) Wrap anoperation
to make an authentication protocol available to the thread that invokes it, for the duration of theoperation
's execution.
-