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