org.syncope.console.rest
Class AuthRestClient
java.lang.Object
org.syncope.console.rest.AuthRestClient
public class AuthRestClient
- extends Object
Console client for invoking authentication services.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
restClient
protected RestClient restClient
AuthRestClient
public AuthRestClient()
authenticate
public SyncopeUser authenticate(String username,
String password)
- Authenticate the user.
- Parameters:
username - password -
- Returns:
- SyncopeUser valued object
getAdminRoles
public List<String> getAdminRoles()
getManagerRoles
public List<String> getManagerRoles()
getRestClient
public RestClient getRestClient()
- Getter for restClient attribute.
- Returns:
- RestClient instance
setRestClient
public void setRestClient(RestClient restClient)
- Setter for restClient attribute.
- Parameters:
restClient - instance
Copyright © 2010. All Rights Reserved.