public class GoogleTurnCandidateHarvester extends StunCandidateHarvester
Component
.Modifier and Type | Field and Description |
---|---|
private String |
password
The gingle candidates password necessary to use the TURN server.
|
stunServer
Constructor and Description |
---|
GoogleTurnCandidateHarvester(TransportAddress turnServer)
Initializes a new GoogleTurnCandidateHarvester instance which
is to work with a specific Google TURN server.
|
GoogleTurnCandidateHarvester(TransportAddress turnServer,
String shortTermCredentialUsername,
String password)
Initializes a new GoogleTurnCandidateHarvester instance which is
to work with a specific TURN server using a specific username for the
purposes of the STUN short-term credential mechanism.
|
Modifier and Type | Method and Description |
---|---|
protected GoogleTurnCandidateHarvest |
createHarvest(HostCandidate hostCandidate)
Creates a new GoogleTurnCandidateHarvest instance which is to
perform TURN harvesting of a specific HostCandidate.
|
String |
getPassword()
Returns the password for this candidate.
|
completedResolvingCandidate, createLongTermCredential, getHostCandidate, getShortTermCredentialUsername, getStunStack, harvest, toString
getHarvestStatistics, isHostHarvester
private String password
public GoogleTurnCandidateHarvester(TransportAddress turnServer)
turnServer
- the TransportAddress of the TURN server the
new instance is to work withpublic GoogleTurnCandidateHarvester(TransportAddress turnServer, String shortTermCredentialUsername, String password)
turnServer
- the TransportAddress of the TURN server the
new instance is to work withshortTermCredentialUsername
- the username to be used by the new
instance for the purposes of the STUN short-term credential mechanism or
null if the use of the STUN short-term credential mechanism is
not determined at the time of the construction of the new instancepassword
- The gingle candidates password necessary to use this TURN
server.protected GoogleTurnCandidateHarvest createHarvest(HostCandidate hostCandidate)
createHarvest
in class StunCandidateHarvester
hostCandidate
- the HostCandidate for which harvesting is
to be performed by the new TurnCandidateHarvest instanceStunCandidateHarvester.createHarvest(HostCandidate)
public String getPassword()
Copyright © 2018. All rights reserved.