Class HybridTokenFactory

java.lang.Object
com.sap.cloud.security.servlet.HybridTokenFactory
All Implemented Interfaces:
TokenFactory

public class HybridTokenFactory extends Object implements TokenFactory
Creates a Token instance. Supports Jwt tokens from IAS and XSUAA identity service. TokenFactory loads and instantiates the respective Token dynamically.
  • Constructor Details

    • HybridTokenFactory

      public HybridTokenFactory()
  • Method Details

    • create

      public Token create(String jwtToken)
      Determines whether the JWT token is issued by XSUAA or IAS identity service, and creates a Token for it.
      Specified by:
      create in interface TokenFactory
      Parameters:
      jwtToken - the encoded JWT token (access_token or id_token), e.g. from the Authorization Header.
      Returns:
      the new token instance