org.lastbamboo.common.ice.candidate
Class IceFoundationCalculator

java.lang.Object
  extended by org.lastbamboo.common.ice.candidate.IceFoundationCalculator

public class IceFoundationCalculator
extends Object

Class for calculating ICE foundations.


Method Summary
static String calculateFoundation(IceCandidateType type, InetAddress baseAddress, IceTransportProtocol transport)
          Returns the foundation using the type and the base address.
static String calculateFoundation(IceCandidateType type, InetAddress baseAddress, IceTransportProtocol transport, InetAddress stunServerAddress)
          Returns the foundation using the type, base address, and STUN server address.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

calculateFoundation

public static String calculateFoundation(IceCandidateType type,
                                         InetAddress baseAddress,
                                         IceTransportProtocol transport)
Returns the foundation using the type and the base address.

Parameters:
type - The ICE candidate type.
baseAddress - The base address.
transport - The transport protocol.
Returns:
The calculated foundation.

calculateFoundation

public static String calculateFoundation(IceCandidateType type,
                                         InetAddress baseAddress,
                                         IceTransportProtocol transport,
                                         InetAddress stunServerAddress)
Returns the foundation using the type, base address, and STUN server address.

Parameters:
type - The ICE candidate type.
baseAddress - The base address.
transport - The transport protocol.
stunServerAddress - The STUN server address.
Returns:
The calculated foundation.


Copyright © 2013 LittleShoot. All Rights Reserved.