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

bluecrystal.service.jwt.Signer Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
package bluecrystal.service.jwt;

import java.util.HashMap;

import com.auth0.jwt.JWTSigner;

public class Signer {
//	private JWTSigner signer;
//
//	public Signer(Credential credential) {
//		super();
//		if(credential instanceof CredentialJHmac){
//			CredentialJHmac tmpCred = (CredentialJHmac) credential;
//			this.signer = new JWTSigner(tmpCred.getSecret());
//		} else {
//			CredentialPKey tmpCred = (CredentialPKey) credential;
//			this.signer = new JWTSigner(tmpCred.getPrivateKey());
//
//		}
//	}
//	
//	public String sign(Claim claim){
//		HashMap map = claim.toMap();
//		return signer.sign(map);
//	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy