Interface Securable
public interface Securable
A Spring Cloud Stream message containing a JWT token that can be verified for authenticity and
that contains claims about the messages originating user that can be validated for suitability of
consumption in the current context.
- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptiongetToken()
A Base64 encoded JWT token generally containing the following claims: user - the user name for the user that generated the message via some action.void
A Base64 encoded JWT token generally containing the following claims: user - the user name for the user that generated the message via some action.
-
Method Details
-
getToken
String getToken()A Base64 encoded JWT token generally containing the following claims:- user - the user name for the user that generated the message via some action. This can be a system component name if the message originated via automation.
- authorities - comma delimited list of authorities available to the user. Not applicable for system components.
- created date - the date this token was created
- Returns:
- A Base64 encoded JWT token
-
setToken
A Base64 encoded JWT token generally containing the following claims:- user - the user name for the user that generated the message via some action. This can be a system component name if the message originated via automation.
- authorities - comma delimited list of authorities available to the user. Not applicable for system components.
- created date - the date this token was created
- Parameters:
token
- A Base64 encoded JWT token
-