public class UserRestConnector extends RemoteRestConnector implements UserConnector
RemoteRestConnector.REQUEST_MODE
CHARACTER_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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public UserRestConnector(NodeInformation nodeInformation) throws ConfigurationException
ConfigurationException
public void addUser(RemotingContext context, String username, String host, String password) throws RemoteException
addUser
in interface UserConnector
RemoteException
public void deleteUser(RemotingContext context, String username) throws RemoteException
deleteUser
in interface UserConnector
RemoteException
public List<String> getUsers(RemotingContext context) throws RemoteException
getUsers
in interface UserConnector
RemoteException
public void grant(RemotingContext context, String object, String user, AccessMode mode) throws RemoteException
grant
in interface UserConnector
RemoteException
public void revoke(RemotingContext context, String object, String user) throws RemoteException
revoke
in interface UserConnector
RemoteException
Copyright © 2015. All rights reserved.