Module org.elasticsearch.xcore
Class AuthenticationContextSerializer
java.lang.Object
org.elasticsearch.xpack.core.security.authc.support.AuthenticationContextSerializer
A class from reading/writing
Authentication objects to/from a
ThreadContext under a specified key-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationgetAuthentication(ThreadContext context) voidwriteToContext(Authentication authentication, ThreadContext ctx) Writes the authentication to the context.
-
Constructor Details
-
AuthenticationContextSerializer
public AuthenticationContextSerializer() -
AuthenticationContextSerializer
-
-
Method Details
-
readFromContext
- Throws:
IOException
-
decode
- Throws:
IOException
-
getAuthentication
-
writeToContext
Writes the authentication to the context. There must not be an existing authentication in the context and if there is anIllegalStateExceptionwill be thrown- Throws:
IOException
-