Class JwrService


  • @Named
    public class JwrService
    extends Object
    Version:
    April 10, 2020
    Author:
    Yuriy Zabrovarnyy
    • Constructor Detail

      • JwrService

        public JwrService()
    • Method Detail

      • encode

        public io.jans.as.model.token.JsonWebResponse encode​(io.jans.as.model.token.JsonWebResponse jwr,
                                                             io.jans.as.common.model.registration.Client client)
                                                      throws 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:
        Exception
      • createJwr

        public io.jans.as.model.token.JsonWebResponse createJwr​(io.jans.as.common.model.registration.Client client)
      • setSubjectIdentifier

        public void setSubjectIdentifier​(io.jans.as.model.token.JsonWebResponse jwr,
                                         IAuthorizationGrant authorizationGrant)
      • wrapWithSidFunction

        public static Function<io.jans.as.model.token.JsonWebResponse,​Void> wrapWithSidFunction​(Function<io.jans.as.model.token.JsonWebResponse,​Void> input,
                                                                                                      String outsideSid)