Interface AuthenticationContext
-
public interface AuthenticationContextFlowable Authentication context that can be implemented in different ways to hold and store the current authentication information.- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAuthenticatedUserId()The user id of the authenticated principal.PrincipalgetPrincipal()Obtains the currently authenticated principal, or an authentication request token.voidsetPrincipal(Principal principal)Changes the currently authenticated principal, or removes the authentication information.
-
-
-
Method Detail
-
getAuthenticatedUserId
String getAuthenticatedUserId()
The user id of the authenticated principal.- Returns:
- the id of the authenticated user
-
getPrincipal
Principal getPrincipal()
Obtains the currently authenticated principal, or an authentication request token.- Returns:
- the
Principalornullif no principal information is available
-
setPrincipal
void setPrincipal(Principal principal)
Changes the currently authenticated principal, or removes the authentication information.- Parameters:
principal- the newAuthenticationtoken, ornullif no further principal information should be stored
-
-