public final class BrightcoveTokenAuthorizer
extends java.lang.Object
Video
with a Brightcove aiuthorization token.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BRIGHTCOVE_AUTHORIZATION_HEADER_KEY
The constant BRIGHTCOVE_AUTHORIZATION_HEADER_KEY.
|
static java.lang.String |
BRIGHTCOVE_AUTHORIZATION_QUERY_PARAM_KEY
The constant BRIGHTCOVE_AUTHORIZATION_QUERY_PARAM_KEY.
|
Constructor and Description |
---|
BrightcoveTokenAuthorizer()
Instantiates a new Brightcove Token Authorizer.
|
Modifier and Type | Method and Description |
---|---|
Video |
configure(Video video,
java.lang.String brightcoveAuthorizationToken)
Configures the video with the Authorization Token.
|
java.lang.String |
findAuthorizationToken(Video video)
Attempts to find the Authorization Token string configured in the Video.
|
public static final java.lang.String BRIGHTCOVE_AUTHORIZATION_HEADER_KEY
public static final java.lang.String BRIGHTCOVE_AUTHORIZATION_QUERY_PARAM_KEY
public BrightcoveTokenAuthorizer()
@NonNull public Video configure(@NonNull Video video, @NonNull java.lang.String brightcoveAuthorizationToken)
video
- the videobrightcoveAuthorizationToken
- the Authorization Token@Nullable public java.lang.String findAuthorizationToken(@NonNull Video video)
video
- the video