public final class AuthenticationUtil extends Object
authentication protocols
to the current thread.Modifier and Type | Class and Description |
---|---|
static class |
AuthenticationUtil.AuthenticatingOperation<V>
Encapsulation of an administrative operation requiring (potentially) client
authentication to authorize the operation.
|
Modifier and Type | Method and Description |
---|---|
static <V> Callable<V> |
authenticatingOperation(IAuthenticationProtocol authenticationProtocol,
Callable<V> operation)
Wrap an
operation to make an authentication protocol available
to the thread that invokes it, for the duration of the operation 's execution. |
static IAuthenticationProtocol |
getAuthenticationProtocol()
Obtains the authentication protocol, if any, on which the current thread should
authenticate administrative operations in handling incoming signals.
|
public static IAuthenticationProtocol getAuthenticationProtocol()
null
if authentication is not requiredpublic static <V> Callable<V> authenticatingOperation(IAuthenticationProtocol authenticationProtocol, Callable<V> operation)
operation
to make an authentication protocol available
to the thread that invokes it, for the duration of the operation
's execution.Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.