Interface SecretProvider


public interface SecretProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the shared secret used to communicate with the client/host with the passed IP address or null if the client is not allowed at this server.
    default String
    An alternative method of returning shared secret but this time with the current radius request so that alternative secrets can be returned based on some sort of context.
  • Method Details

    • getSharedSecret

      String getSharedSecret(InetSocketAddress address)
      Returns the shared secret used to communicate with the client/host with the passed IP address or null if the client is not allowed at this server.
      Parameters:
      address - IP address and port number of remote host/client
      Returns:
      shared secret or null
    • getSharedSecret

      default String getSharedSecret(InetSocketAddress address, RadiusRequest request)
      An alternative method of returning shared secret but this time with the current radius request so that alternative secrets can be returned based on some sort of context.

      By default, this method calls the original getSharedSecret.

      Parameters:
      address - IP address and port number of remote host/client
      request - the RadiusRequest relating to this request
      Returns:
      shared secret or null