Class JwrService

java.lang.Object
io.jans.as.server.model.token.JwrService

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.jans.as.model.token.JsonWebResponse
    createJwr(io.jans.as.common.model.registration.Client client)
     
    io.jans.as.model.token.JsonWebResponse
    encode(io.jans.as.model.token.JsonWebResponse jwr, io.jans.as.common.model.registration.Client client)
    Encode means encrypt for Jwe and sign for Jwt, means it's implementaiton specific but we want to abstract it.
    void
    setSubjectIdentifier(io.jans.as.model.token.JsonWebResponse jwr, IAuthorizationGrant authorizationGrant)
     
    static Function<io.jans.as.model.token.JsonWebResponse,Void>
    wrapWithSidFunction(Function<io.jans.as.model.token.JsonWebResponse,Void> input, String outsideSid)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JwrService

      public JwrService()
  • Method Details

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