Package spread
Interface SpreadAuthInterface
-
- All Known Implementing Classes:
NULLAuth
public interface SpreadAuthInterfaceObjects of a class that implements the SpreadAuthInterface interface can act as the client side of an authentication protocol to complete a Spread connection. The connect methodSpreadConnection.connect(InetAddress, int, String, boolean, boolean)will call theauthenticate()method during a connection. If the module wants to deny the connection it should raise a SpreadException. If it wants to allow the connection it should return normally.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticate()This method will be called during the establishment of a Spread connection.
-
-
-
Method Detail
-
authenticate
void authenticate() throws SpreadExceptionThis method will be called during the establishment of a Spread connection. It should run whatever protocol is necessary to authenticate the connection and return normally to allow the connection, or raise a SpreadException to deny the connection.- Throws:
SpreadException
-
-