Package org.ice4j.ice
Class PeerReflexiveCandidate
-
- All Implemented Interfaces:
-
java.lang.Comparable
public class PeerReflexiveCandidate extends LocalCandidate
Peer Reflexive Candidates are candidates whose IP address and port are a binding explicitly allocated by a NAT for an agent when it sent a STUN Binding request through the NAT to its peer.
Peer Reflexive Candidates are generally allocated by NATs with endpoint dependent mapping also known as Symmetric NATs. PeerReflexiveCandidates are generally preferred to relayed ones. RFC 5245 explains this with better security ... although simply avoiding a relay would probably be enough of a reason for many.
Emil Ivov
-
-
Field Summary
Fields Modifier and Type Field Description public CandidateExtendedType
extendedType
public String
ufrag
public boolean
isSSL
public final static int
MAX_TYPE_PREFERENCE
public final static int
MIN_TYPE_PREFERENCE
public final static int
MAX_LOCAL_PREFERENCE
public final static int
MIN_LOCAL_PREFERENCE
public final TransportAddress
transportAddress
public String
foundation
public T
base
public final Component
parentComponent
public TransportAddress
stunServerAddress
public TransportAddress
relayServerAddress
public TransportAddress
mappedAddress
public T
relatedCandidate
public CandidateTcpType
tcpType
-
Constructor Summary
Constructors Constructor Description PeerReflexiveCandidate(TransportAddress transportAddress, Component parentComponent, LocalCandidate base, long priority)
Creates a PeerReflexiveCandidate instance for the specified transport address and properties.
-
Method Summary
Modifier and Type Method Description IceSocketWrapper
getCandidateIceSocketWrapper()
-
Methods inherited from class org.ice4j.ice.LocalCandidate
getDatagramSocket, getExtendedType, getSocket, getStunSocket, getStunStack, getUfrag, isDefault, isSSL, setExtendedType, setSSL, setUfrag
-
Methods inherited from class org.ice4j.ice.Candidate
canReach, compareTo, computeGTalkPriority, computeGTalkPriorityForType, computePriority, computePriorityForType, equals, getBase, getFoundation, getHostAddress, getMappedAddress, getParentComponent, getPriority, getReflexiveAddress, getRelatedAddress, getRelatedCandidate, getRelayServerAddress, getRelayedAddress, getStunServerAddress, getTcpType, getTransport, getTransportAddress, getType, hashCode, isVirtual, setBase, setCandidateType, setFoundation, setTcpType, setVirtual, toShortString, toString
-
Methods inherited from class java.lang.Comparable
compareTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PeerReflexiveCandidate
PeerReflexiveCandidate(TransportAddress transportAddress, Component parentComponent, LocalCandidate base, long priority)
Creates a PeerReflexiveCandidate instance for the specified transport address and properties.- Parameters:
transportAddress
- the transport address that this candidate is encapsulating.parentComponent
- the Component that this candidate belongs to.base
- the base of a peer reflexive candidate base is the local candidate of the candidate pair from which the STUN check was sent.priority
- the priority of the candidate.
-
-
Method Detail
-
getCandidateIceSocketWrapper
IceSocketWrapper getCandidateIceSocketWrapper()
-
-
-
-