Package io.openvidu.java.client
Class TokenOptions.Builder
- java.lang.Object
-
- io.openvidu.java.client.TokenOptions.Builder
-
- Enclosing class:
- TokenOptions
public static class TokenOptions.Builder extends Object
Deprecated.UseConnectionProperties.Builder
instead
-
-
Constructor Summary
Constructors Constructor Description Builder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TokenOptions
build()
Deprecated.Builder forTokenOptions
.TokenOptions.Builder
data(String data)
Deprecated.Call this method to set the secure (server-side) data associated to this token.TokenOptions.Builder
kurentoOptions(KurentoOptions kurentoOptions)
Deprecated.Call this method to set aKurentoOptions
object for this token.TokenOptions.Builder
role(OpenViduRole role)
Deprecated.Call this method to set the role assigned to this token.
-
-
-
Method Detail
-
build
public TokenOptions build()
Deprecated.Builder forTokenOptions
.
-
role
public TokenOptions.Builder role(OpenViduRole role)
Deprecated.Call this method to set the role assigned to this token.
-
data
public TokenOptions.Builder data(String data)
Deprecated.Call this method to set the secure (server-side) data associated to this token. Every client will receive this data in propertyConnection.data
. ObjectConnection
can be retrieved by subscribing to eventconnectionCreated
of Session object in your clients.- If you have provided no data in your clients when calling method
Session.connect(TOKEN, DATA)
(DATA
not defined), thenConnection.data
will only have thisdata(String)
property. - If you have provided some data when calling
Session.connect(TOKEN, DATA)
(DATA
defined), thenConnection.data
will have the following structure:"CLIENT_DATA%/%SERVER_DATA"
, beingCLIENT_DATA
the second parameter passed in OpenVidu Browser in methodSession.connect
andSERVER_DATA
thisdata(String)
property.
- If you have provided no data in your clients when calling method
-
kurentoOptions
public TokenOptions.Builder kurentoOptions(KurentoOptions kurentoOptions)
Deprecated.Call this method to set aKurentoOptions
object for this token.
-
-