Package 

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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.