Class AuthenticationChannelTokenPolicy

java.lang.Object
com.oracle.content.sdk.AuthenticationPolicy
com.oracle.content.sdk.AuthenticationChannelTokenPolicy

public class AuthenticationChannelTokenPolicy extends AuthenticationPolicy
Authentication policy for published content, which requires a channel token associated with the published channel that was used to publish the data that the delivery SDK will request.
  • Constructor Details

    • AuthenticationChannelTokenPolicy

      public AuthenticationChannelTokenPolicy(String channelToken)
      Construct the authentication policy using the specified channel token.
      Parameters:
      channelToken - The channel token value for the published channel
  • Method Details

    • addQueryParameters

      public void addQueryParameters(okhttp3.HttpUrl.Builder builder)
      The published channel policy overrides this method to add the query parameter channelToken=[value] to each request.
      Overrides:
      addQueryParameters in class AuthenticationPolicy
      Parameters:
      builder - Builder class to add query parameters