Class KubectlTokenLoader

java.lang.Object
com.tremolosecurity.scalejs.KubectlTokenLoader
All Implemented Interfaces:
TokenLoader

public class KubectlTokenLoader extends Object implements TokenLoader
  • Constructor Details

    • KubectlTokenLoader

      public KubectlTokenLoader()
  • Method Details

    • init

      public void init(HttpFilterConfig config, ScaleTokenConfig scaleTokenConfig) throws Exception
      Description copied from interface: TokenLoader
      Called when the insert is loaded with configuration parameters
      Specified by:
      init in interface TokenLoader
      Throws:
      Exception
    • renderTemplate

      public String renderTemplate(String val, Map<String,Object> request)
    • loadToken

      public Object loadToken(AuthInfo user, jakarta.servlet.http.HttpSession session, jakarta.servlet.http.HttpServletRequest request) throws Exception
      Description copied from interface: TokenLoader
      Return an object to be serialized to JSON and sent to the client
      Specified by:
      loadToken in interface TokenLoader
      Parameters:
      user - The logged in user
      session - The user's session
      request - The user's request
      Returns:
      Object to serialize
      Throws:
      Exception