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

com.github.vindell.jwt.token.JwtKeyPairRepository Maven / Gradle / Ivy

There is a newer version: 1.0.3.RELEASE
Show newest version
package com.github.vindell.jwt.token;

import java.util.Map;

import com.github.vindell.jwt.exception.JwtException;
import com.github.vindell.jwt.JwtPayload;

public interface JwtKeyPairRepository {

	public abstract String issueJwt(S signingKey, E secretKey, String jwtId, String subject, String issuer, String audience,
			String roles, String permissions, String algorithm, long period) throws JwtException;
	
	public abstract String issueJwt(S signingKey, E secretKey, String jwtId, String subject, String issuer, String audience,
			Map claims, String algorithm, long period) throws JwtException;

	public abstract boolean verify(S signingKey, E secretKey, String token, boolean checkExpiry)
			throws JwtException;

	public abstract JwtPayload getPlayload(S signingKey, E secretKey, String token, boolean checkExpiry)
			throws JwtException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy