Interface AuthContextWithState
-
- All Known Implementing Classes:
FallbackAuthContext
public interface AuthContextWithState
AsyncServerAuthContext
implementations should implement this interface when theAsyncServerAuthContext
has its own implementation of aAuthenticationState
that it will be using to store and maintain state for a single request.The
MessageContext
will use thecreateAuthenticationState()
method on this interface to create a new instance of theAuthenticationState
for each request message.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthenticationState
createAuthenticationState()
Creates an instance of a specific type ofAuthenticationState
.
-
-
-
Method Detail
-
createAuthenticationState
AuthenticationState createAuthenticationState()
Creates an instance of a specific type of
AuthenticationState
.Must return a new
AuthenticationState
instance for each invocation.- Returns:
- A new
AuthenticationState
instance.
-
-