public class UserRestConnector extends RemoteRestConnector implements UserConnector
RemoteRestConnector.REQUEST_MODECHARACTER_ENCODING, CONNECTION_HOST_PROPERTY, CONNECTION_PORT_PROPERTY, REQUESTCONTEXT| Constructor and Description |
|---|
UserRestConnector(NodeInformation nodeInformation) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(RemotingContext context,
String username,
String host,
String password) |
void |
deleteUser(RemotingContext context,
String username) |
List<String> |
getUsers(RemotingContext context) |
void |
grant(RemotingContext context,
String object,
String user,
AccessMode mode) |
void |
revoke(RemotingContext context,
String object,
String user) |
close, doInternalRequest, doRequest, doRequest, doRequest, toBytes, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclosepublic UserRestConnector(NodeInformation nodeInformation) throws ConfigurationException
ConfigurationExceptionpublic void addUser(RemotingContext context, String username, String host, String password) throws RemoteException
addUser in interface UserConnectorRemoteExceptionpublic void deleteUser(RemotingContext context, String username) throws RemoteException
deleteUser in interface UserConnectorRemoteExceptionpublic List<String> getUsers(RemotingContext context) throws RemoteException
getUsers in interface UserConnectorRemoteExceptionpublic void grant(RemotingContext context, String object, String user, AccessMode mode) throws RemoteException
grant in interface UserConnectorRemoteExceptionpublic void revoke(RemotingContext context, String object, String user) throws RemoteException
revoke in interface UserConnectorRemoteExceptionCopyright © 2015. All rights reserved.