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.Builderinstead
-
-
Constructor Summary
Constructors Constructor Description Builder()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TokenOptionsbuild()Deprecated.Builder forTokenOptions.TokenOptions.Builderdata(String data)Deprecated.Call this method to set the secure (server-side) data associated to this token.TokenOptions.BuilderkurentoOptions(KurentoOptions kurentoOptions)Deprecated.Call this method to set aKurentoOptionsobject for this token.TokenOptions.Builderrole(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. ObjectConnectioncan be retrieved by subscribing to eventconnectionCreatedof Session object in your clients.- If you have provided no data in your clients when calling method
Session.connect(TOKEN, DATA)(DATAnot defined), thenConnection.datawill only have thisdata(String)property. - If you have provided some data when calling
Session.connect(TOKEN, DATA)(DATAdefined), thenConnection.datawill have the following structure:"CLIENT_DATA%/%SERVER_DATA", beingCLIENT_DATAthe second parameter passed in OpenVidu Browser in methodSession.connectandSERVER_DATAthisdata(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 aKurentoOptionsobject for this token.
-
-