Package com.sap.cloud.security.servlet
Class HybridTokenFactory
java.lang.Object
com.sap.cloud.security.servlet.HybridTokenFactory
- All Implemented Interfaces:
TokenFactory
Creates a
Token instance. Supports Jwt tokens from IAS and XSUAA identity service. TokenFactory loads and
instantiates the respective Token dynamically.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HybridTokenFactory
public HybridTokenFactory()
-
-
Method Details
-
create
Determines whether the JWT token is issued by XSUAA or IAS identity service, and creates a Token for it.- Specified by:
createin interfaceTokenFactory- Parameters:
jwtToken- the encoded JWT token (access_token or id_token), e.g. from the Authorization Header.- Returns:
- the new token instance
-