Class 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)  
    • 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)