All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlassian.usercontext.api.UserContextTokenValidator Maven / Gradle / Ivy

Go to download

Java library that implements the User Context spec for passing user context information between services

There is a newer version: 0.3.1
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy