Package com.oracle.content.sdk
Class AuthenticationChannelTokenPolicy
java.lang.Object
com.oracle.content.sdk.AuthenticationPolicy
com.oracle.content.sdk.AuthenticationChannelTokenPolicy
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.
-
Field Summary
Fields inherited from class com.oracle.content.sdk.AuthenticationPolicy
userAgentHeader
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationChannelTokenPolicy
(String channelToken) Construct the authentication policy using the specified channel token. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addQueryParameters
(okhttp3.HttpUrl.Builder builder) The published channel policy overrides this method to add the query parameter channelToken=[value] to each request.Methods inherited from class com.oracle.content.sdk.AuthenticationPolicy
getAuthHeader, getInterceptor, setUserAgentHeader
-
Constructor Details
-
AuthenticationChannelTokenPolicy
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 classAuthenticationPolicy
- Parameters:
builder
- Builder class to add query parameters
-