public class TurnCandidateHarvester extends StunCandidateHarvester
Component
.Modifier and Type | Field and Description |
---|---|
private LongTermCredential |
longTermCredential
The LongTermCredential to be used with the TURN server with
which this instance works.
|
stunServer
Constructor and Description |
---|
TurnCandidateHarvester(TransportAddress turnServer)
Initializes a new TurnCandidateHarvester instance which is to
work with a specific TURN server.
|
TurnCandidateHarvester(TransportAddress turnServer,
LongTermCredential longTermCredential)
Initializes a new TurnCandidateHarvester instance which is to
work with a specific TURN server using a specific
LongTermCredential.
|
TurnCandidateHarvester(TransportAddress turnServer,
String shortTermCredentialUsername)
Initializes a new TurnCandidateHarvester 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 TurnCandidateHarvest |
createHarvest(HostCandidate hostCandidate)
Creates a new TurnCandidateHarvest instance which is to perform
TURN harvesting of a specific HostCandidate.
|
protected LongTermCredential |
createLongTermCredential(StunCandidateHarvest harvest,
byte[] realm)
Creates a LongTermCredential to be used by a specific
StunCandidateHarvest for the purposes of the long-term
credential mechanism in a specific realm of the TURN server
associated with this TurnCandidateHarvester.
|
completedResolvingCandidate, getHostCandidate, getShortTermCredentialUsername, getStunStack, harvest, toString
getHarvestStatistics, isHostHarvester
private final LongTermCredential longTermCredential
public TurnCandidateHarvester(TransportAddress turnServer)
turnServer
- the TransportAddress of the TURN server the
new instance is to work withpublic TurnCandidateHarvester(TransportAddress turnServer, LongTermCredential longTermCredential)
turnServer
- the TransportAddress of the TURN server the
new instance is to work withlongTermCredential
- the LongTermCredential to use with the
specified turnServer or null if the use of the
long-term credential mechanism is not determined at the time of the
initialization of the new TurnCandidateHarvester instancepublic TurnCandidateHarvester(TransportAddress turnServer, String shortTermCredentialUsername)
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 instanceprotected TurnCandidateHarvest createHarvest(HostCandidate hostCandidate)
createHarvest
in class StunCandidateHarvester
hostCandidate
- the HostCandidate for which harvesting is
to be performed by the new TurnCandidateHarvest instanceStunCandidateHarvester.createHarvest(HostCandidate)
protected LongTermCredential createLongTermCredential(StunCandidateHarvest harvest, byte[] realm)
createLongTermCredential
in class StunCandidateHarvester
harvest
- the StunCandidateHarvest which asks for the
LongTermCredentialrealm
- the realm of the TURN server associated with this
TurnCandidateHarvester in which harvest will use the
returned LongTermCredentialStunCandidateHarvester.createLongTermCredential(
StunCandidateHarvest,byte[])
Copyright © 2018. All rights reserved.