Interface AuthorizationStrategy
- All Known Implementing Classes:
DefaultAuthorizationStrategy,MockAuthorizationStrategy
public interface AuthorizationStrategy
Creates authorization data and endpoint information
-
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizationData(CpqCredentialsData credentials) getCpqCredentialsForClient(String ownerId) long
-
Method Details
-
getAuthorizationData
- Parameters:
credentials-- Returns:
- Authorization Data
-
getCpqCredentialsForAdmin
CpqCredentialsData getCpqCredentialsForAdmin()- Returns:
- Credentials for connecting to CPQ from the Commerce server
-
getCpqCredentialsForClient
- Parameters:
ownerId- owner id of the client- Returns:
- Credentials for connecting to CPQ from a client
-
getTokenExpirationBuffer
long getTokenExpirationBuffer()- Returns:
- a new token will be requested already the specified amount of ms before the token expires.
-