public class JSONRPC2Helper extends Object
Modifier and Type | Field and Description |
---|---|
static Boolean |
USE_AUTH |
static Boolean |
USE_NO_AUTH |
Constructor and Description |
---|
JSONRPC2Helper(SecurityManager secMan) |
Modifier and Type | Method and Description |
---|---|
JSONRPC2Error |
validateParams(String[] requiredArgs,
JSONRPC2Request req)
Check incoming request for required arguments, to make sure they are valid.
|
JSONRPC2Error |
validateParams(String[] requiredArgs,
JSONRPC2Request req,
Boolean useAuth)
Check incoming request for required arguments, to make sure they are valid.
|
public static final Boolean USE_NO_AUTH
public static final Boolean USE_AUTH
public JSONRPC2Helper(SecurityManager secMan)
public JSONRPC2Error validateParams(String[] requiredArgs, JSONRPC2Request req, Boolean useAuth)
requiredArgs
- - Array of names of required arguments. If null don't check for any parameters.req
- - Incoming JSONRPC2 requestuseAuth
- - If true, will validate authentication token.public JSONRPC2Error validateParams(String[] requiredArgs, JSONRPC2Request req)
requiredArgs
- - Array of names of required arguments. If null don't check for any parameters.req
- - Incoming JSONRPC2 request