Package com.vonage.client.video
Class TokenOptions
java.lang.Object
com.vonage.client.video.TokenOptions
Defines values for the
options parameter of the
VideoClient.generateToken(String sessionId, TokenOptions tokenOptions) method.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUse this class to create a TokenOptions object. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddClaims(com.vonage.jwt.Jwt.Builder jwt) static TokenOptions.Builderbuilder()Entry point for constructing an instance of TokenOptions.getData()Returns the connection metadata assigned to the token.Returns the time-to-live for the JWT.Returns the initial layout class list for streams published by the client using this token.getRole()Returns the role assigned to the token.
-
Method Details
-
addClaims
-
getRole
Returns the role assigned to the token.- Returns:
- The role, as an enum.
- See Also:
-
getExpiryLength
Returns the time-to-live for the JWT.- Returns:
- The TTL duration.
- See Also:
-
getData
Returns the connection metadata assigned to the token.- Returns:
- The connection data, as a string.
- See Also:
-
getInitialLayoutClassList
Returns the initial layout class list for streams published by the client using this token.- Returns:
- The initial layout classes, as a List of strings.
- See Also:
-
builder
Entry point for constructing an instance of TokenOptions.- Returns:
- A new Builder.
-