org.tinyradius.util
Class RadiusEndpoint

java.lang.Object
  extended by org.tinyradius.util.RadiusEndpoint

public class RadiusEndpoint
extends java.lang.Object

This class stores information about a Radius endpoint. This includes the address of the remote endpoint and the shared secret used for securing the communication.


Constructor Summary
RadiusEndpoint(java.net.InetSocketAddress remoteAddress, java.lang.String sharedSecret)
          Constructs a RadiusEndpoint object.
 
Method Summary
 java.net.InetSocketAddress getEndpointAddress()
          Returns the remote address.
 java.lang.String getSharedSecret()
          Returns the shared secret.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadiusEndpoint

public RadiusEndpoint(java.net.InetSocketAddress remoteAddress,
                      java.lang.String sharedSecret)
Constructs a RadiusEndpoint object.

Parameters:
remoteAddress - remote address (ip and port number)
sharedSecret - shared secret
Method Detail

getEndpointAddress

public java.net.InetSocketAddress getEndpointAddress()
Returns the remote address.

Returns:
remote address

getSharedSecret

public java.lang.String getSharedSecret()
Returns the shared secret.

Returns:
shared secret