Class JwtSigner


  • public class JwtSigner
    extends java.lang.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, java.lang.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, java.lang.String audience, java.lang.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, java.lang.String audience, java.lang.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)  
      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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                         java.lang.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,
                         java.lang.String audience,
                         java.lang.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,
                         java.lang.String audience,
                         java.lang.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 java.lang.Exception
        Throws:
        java.lang.Exception
      • newJwt

        public io.jans.as.model.jwt.Jwt newJwt()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • sign

        public io.jans.as.model.jwt.Jwt sign()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • 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)