Package org.eclipse.emf.cdo.spi.server

# Klasse AuthenticationUtil

java.lang.Object
org.eclipse.emf.cdo.spi.server.AuthenticationUtil

public final class AuthenticationUtil extends Object
Static utility methods for binding `authentication protocols` to the current thread.

Seit:
  4.3
Autor:
  Christian W. Damus (CEA LIST)

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static class`
`AuthenticationUtil.AuthenticatingOperation<V>`
Encapsulation of an administrative operation requiring (potentially) client authentication to authorize the operation.

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`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.

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Methodendetails

### getAuthenticationProtocol

public static IAuthenticationProtocol getAuthenticationProtocol()
Obtains the authentication protocol, if any, on which the current thread should authenticate administrative operations in handling incoming signals.

Gibt zurück:
  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 an `operation` to make an authentication protocol available to the thread that invokes it, for the duration of the `operation`'s execution.