bluecrystal.service.jwt.Signer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluecrystal.deps.service Show documentation
Show all versions of bluecrystal.deps.service Show documentation
API that should be used by applications
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