/* * * Code derived and adapted from the Jitsi client side STUN framework. * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.restcomm.media.stun.messages.attributes.address; import org.restcomm.media.stun.messages.attributes.StunAttribute; /** * The REFLECTED-FROM attribute is present only in Binding Responses, when the * Binding Request contained a RESPONSE-ADDRESS attribute. * <p> * The attribute contains the identity (in terms of IP address) of the source * where the request came from. Its purpose is to provide traceability, so that * a STUN server cannot be used as a reflector for denial-of-service attacks. * </p> * * Its syntax is identical to the MAPPED-ADDRESS attribute. */ public class ReflectedFromAttribute extends AddressAttribute { public static final String NAME = "REFLECTED-FROM"; public ReflectedFromAttribute() { super(StunAttribute.REFLECTED_FROM); } @Override public String getName() { return NAME; } }