public class RPCStructures
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<net.corda.node.services.User> |
CURRENT_RPC_USER
This is available to RPC implementations to query the validated
class User that is calling it. Each user has a set of
permissions they're entitled to which can be used to control access. |
Modifier and Type | Method and Description |
---|---|
static com.esotericsoftware.kryo.Kryo |
createRPCKryo(com.esotericsoftware.kryo.Serializer<rx.Observable> observableSerializer) |
static org.slf4j.Logger |
getRpcLog()
Global RPC logger
|
static void |
requirePermission(java.lang.String permission)
Helper method which checks that the current RPC user is entitled for the given permission. Throws a
exception PermissionException otherwise. |
public static java.lang.ThreadLocal<net.corda.node.services.User> CURRENT_RPC_USER
This is available to RPC implementations to query the validated class User
that is calling it. Each user has a set of
permissions they're entitled to which can be used to control access.
class User
public static org.slf4j.Logger getRpcLog()
Global RPC logger
public static void requirePermission(java.lang.String permission)
Helper method which checks that the current RPC user is entitled for the given permission. Throws a exception PermissionException
otherwise.
exception PermissionException
public static com.esotericsoftware.kryo.Kryo createRPCKryo(com.esotericsoftware.kryo.Serializer<rx.Observable> observableSerializer)