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

com.bcgdv.jwt.services.TokenGenerationService Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package com.bcgdv.jwt.services;

import com.bcgdv.jwt.models.TokenExpiryInfo;
import com.simonmittag.cryptoutils.symmetric.SimpleSymmetricCipher;

import java.util.Map;

/**
 * Factory for different token types
 */
public interface TokenGenerationService {

    /**
     * Generate a client token for a validation context and assertions
     * @param assertions the assertions
     * @return the JWT token
     */
    String generateClientToken(Map assertions);


    /**
     * Generate a client token for a validation context and assertions
     * @param assertions the assertions
     * @return the JWT token
     */
    String generateSessionToken(Map assertions);


    /**
     * Generate a client token for a validation context and assertions
     * @param assertions the assertions
     * @return the JWT token
     */
    String generateServerToken(Map assertions);


    /**
     * Fetch the @TokenExpiryInfo
     * @return the TokenExpiryInfo
     */
    TokenExpiryInfo getTokenExpiryInfo();


    /**
     * Fetch the @SimpleSymmetricCipher
     * @return the SimpleSymmetricCipher
     */
    SimpleSymmetricCipher getSimpleSymmetricCipher();


    /**
     * Get the @JwtManger
     * @return the JwtManager
     */
    JwtManager getJwtManager();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy