Class AuthenticateHandler
- java.lang.Object
- 
- net.i2p.i2pcontrol.servlets.jsonrpc2handlers.AuthenticateHandler
 
- 
- All Implemented Interfaces:
- RequestHandler
 
 public class AuthenticateHandler extends Object implements RequestHandler 
- 
- 
Constructor SummaryConstructors Constructor Description AuthenticateHandler(JSONRPC2Helper helper, SecurityManager secMan)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]handledRequests()Gets the names of the handled JSON-RPC 2.0 request methods.JSONRPC2Responseprocess(JSONRPC2Request req, MessageContext ctx)Processes a JSON-RPC 2.0 request.
 
- 
- 
- 
Constructor Detail- 
AuthenticateHandlerpublic AuthenticateHandler(JSONRPC2Helper helper, SecurityManager secMan) 
 
- 
 - 
Method Detail- 
handledRequestspublic String[] handledRequests() Description copied from interface:RequestHandlerGets the names of the handled JSON-RPC 2.0 request methods.- Specified by:
- handledRequestsin interface- RequestHandler
- Returns:
- The names of the handled JSON-RPC 2.0 request methods.
 
 - 
processpublic JSONRPC2Response process(JSONRPC2Request req, MessageContext ctx) Description copied from interface:RequestHandlerProcesses a JSON-RPC 2.0 request.- Specified by:
- processin interface- RequestHandler
- Parameters:
- req- A valid JSON-RPC 2.0 request instance. Must not be- null.
- ctx- Context information about the request message, may be- nullif undefined.
- Returns:
- The resulting JSON-RPC 2.0 response. It indicates success or an error, such as METHOD_NOT_FOUND.
 
 
- 
 
-