com.atlassian.usercontext.api.UserContextTokenValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlassian-user-context Show documentation
Show all versions of atlassian-user-context Show documentation
Java library that implements the User Context spec for passing user context information between services
package com.atlassian.usercontext.api;
import java.util.Optional;
/**
* Used to parse and validate user context tokens from the base64 encoded jwt
* into a {@link UserContext} object.
*/
public interface UserContextTokenValidator {
/**
* Parse and validate a base64 encoded jwt string into a {@link} UserContext object.
*
* @param signedJwt base64 encoded jwt string
* @return a user context object
*/
Optional validate(String signedJwt);
}