Class 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 Detail

      • HybridTokenFactory

        public HybridTokenFactory()
    • Method Detail

      • 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