
com.bcgdv.jwt.services.TokenGenerationService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of token-generation Show documentation
Show all versions of token-generation Show documentation
JWT token generation with encrypted payloads and CLI
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