Package com.opentok
Class TokenOptions
- java.lang.Object
-
- com.opentok.TokenOptions
-
public class TokenOptions extends java.lang.Object
Defines values for thetokenOptions
parameter of theOpenTok.generateToken(String sessionId, TokenOptions tokenOptions)
method and theSession.generateToken(TokenOptions tokenOptions)
method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenOptions.Builder
Use this class to create a TokenOptions object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getData()
Returns the connection metadata assigned to the token.long
getExpireTime()
Returns the expiration time the token, as the number of seconds since the UNIX epoch.java.util.List<java.lang.String>
getInitialLayoutClassList()
Returns the initial layout class list for streams published by the client using this token.Role
getRole()
Returns the role assigned to the token.
-
-
-
Method Detail
-
getRole
public Role getRole()
Returns the role assigned to the token. SeeTokenOptions.Builder.role(Role role)
.
-
getExpireTime
public long getExpireTime()
Returns the expiration time the token, as the number of seconds since the UNIX epoch. SeeTokenOptions.Builder.expireTime(long expireTime)
.
-
getData
public java.lang.String getData()
Returns the connection metadata assigned to the token. SeeTokenOptions.Builder.data(String data)
.
-
getInitialLayoutClassList
public java.util.List<java.lang.String> getInitialLayoutClassList()
Returns the initial layout class list for streams published by the client using this token. SeeTokenOptions.Builder.initialLayoutClassList(List initialLayoutClassList)
.
-
-