public static class TokenOptions.Builder extends Object
TokenOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TokenOptions |
build()
Builder for
TokenOptions |
TokenOptions.Builder |
data(String data)
Call this method to set the secure (server-side) data associated to this
token.
|
TokenOptions.Builder |
role(OpenViduRole role)
Call this method to set the role assigned to this token
|
public TokenOptions build()
TokenOptionspublic TokenOptions.Builder data(String data)
Connection.data. Object Connection can be retrieved
by subscribing to event connectionCreated of Session object in
your clients.
Session.connect(TOKEN, DATA) (DATA not defined),
then Connection.data will only have this
data(String)
property.Session.connect(TOKEN, DATA) (DATA defined), then
Connection.data will have the following structure:
"CLIENT_DATA%/%SERVER_DATA", being
CLIENT_DATA the second parameter passed in OpenVidu Browser in
method Session.connect and SERVER_DATA this
data(String)
property.public TokenOptions.Builder role(OpenViduRole role)
Copyright © 2018 OpenVidu. All rights reserved.