Package io.jans.as.server.model.token
Class JwtSigner
- java.lang.Object
-
- io.jans.as.server.model.token.JwtSigner
-
public class JwtSigner extends Object
- Version:
- February 12, 2019
- Author:
- Yuriy Zabrovarnyy, Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description JwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, String audience)
JwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, String audience, String hmacSharedSecret)
JwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, String audience, String hmacSharedSecret, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jans.as.model.jwt.Jwt
getJwt()
io.jans.as.model.crypto.signature.SignatureAlgorithm
getSignatureAlgorithm()
io.jans.as.model.jwt.Jwt
newJwt()
static JwtSigner
newJwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.common.model.registration.Client client)
static JwtSigner
newJwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.common.model.registration.Client client, String decryptedSecret)
void
setCryptoProvider(io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
void
setJwt(io.jans.as.model.jwt.Jwt jwt)
io.jans.as.model.jwt.Jwt
sign()
-
-
-
Constructor Detail
-
JwtSigner
public JwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, String audience)
-
JwtSigner
public JwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, String audience, String hmacSharedSecret)
-
JwtSigner
public JwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.model.crypto.signature.SignatureAlgorithm signatureAlgorithm, String audience, String hmacSharedSecret, io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
-
-
Method Detail
-
newJwtSigner
public static JwtSigner newJwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.common.model.registration.Client client) throws Exception
- Throws:
Exception
-
newJwtSigner
public static JwtSigner newJwtSigner(io.jans.as.model.configuration.AppConfiguration appConfiguration, io.jans.as.model.jwk.JSONWebKeySet webKeys, io.jans.as.common.model.registration.Client client, String decryptedSecret)
-
newJwt
public io.jans.as.model.jwt.Jwt newJwt() throws io.jans.as.model.exception.CryptoProviderException
- Throws:
io.jans.as.model.exception.CryptoProviderException
-
getJwt
public io.jans.as.model.jwt.Jwt getJwt()
-
setJwt
public void setJwt(io.jans.as.model.jwt.Jwt jwt)
-
getSignatureAlgorithm
public io.jans.as.model.crypto.signature.SignatureAlgorithm getSignatureAlgorithm()
-
setCryptoProvider
public void setCryptoProvider(io.jans.as.model.crypto.AbstractCryptoProvider cryptoProvider)
-
-