Class JwrService


  • @ApplicationScoped
    public class JwrService
    extends java.lang.Object
    Version:
    April 10, 2020
    Author:
    Yuriy Zabrovarnyy
    • Constructor Detail

      • JwrService

        public JwrService()
    • Method Detail

      • encode

        public JsonWebResponse encode​(JsonWebResponse jwr,
                                      Client client)
                               throws java.lang.Exception
        Encode means encrypt for Jwe and sign for Jwt, means it's implementaiton specific but we want to abstract it.
        Returns:
        encoded Jwr
        Throws:
        java.lang.Exception
      • wrapWithSidFunction

        public static com.google.common.base.Function<JsonWebResponse,​java.lang.Void> wrapWithSidFunction​(com.google.common.base.Function<JsonWebResponse,​java.lang.Void> input,
                                                                                                                java.lang.String outsideSid)