com.github.vindell.jwt.token.JwtKeyPairRepository Maven / Gradle / Ivy
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;
}