Class OPPSTokenManager

java.lang.Object
com.sap.retail.sapppspricing.token.manager.OPPSTokenManager

public class OPPSTokenManager extends Object
Class to fetch token and will store it in an attribute
  • Constructor Details

    • OPPSTokenManager

      public OPPSTokenManager()
  • Method Details

    • getDestinationService

      public de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> getDestinationService()
      Returns:
      the destinationService
    • setDestinationService

      public void setDestinationService(de.hybris.platform.apiregistryservices.services.DestinationService<ConsumedDestinationModel> destinationService)
      Parameters:
      destinationService - the destinationService to set
    • fetchAccessToken

      public String fetchAccessToken()
      Method to return token. If the token is not available, it will generate a new one.
      Returns:
      access token
    • setAccessToken

      public void setAccessToken(String accessToken)
    • refreshToken

      public String refreshToken()
      Method to refresh token when the token is expired
      Returns:
      access token