Package com.sap.cloud.security.servlet
Class HybridTokenFactory
- java.lang.Object
-
- com.sap.cloud.security.servlet.HybridTokenFactory
-
- All Implemented Interfaces:
TokenFactory
public class HybridTokenFactory extends Object implements TokenFactory
Creates aTokeninstance. Supports Jwt tokens from IAS and XSUAA identity service. TokenFactory loads and instantiates the respective Token dynamically.
-
-
Constructor Summary
Constructors Constructor Description HybridTokenFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tokencreate(String jwtToken)Determines whether the JWT token is issued by XSUAA or IAS identity service, and creates a Token for it.
-
-
-
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:
createin interfaceTokenFactory- Parameters:
jwtToken- the encoded JWT token (access_token or id_token), e.g. from the Authorization Header.- Returns:
- the new token instance
-
-