org.syncope.console.rest
Class AuthRestClient

java.lang.Object
  extended by org.syncope.console.rest.AuthRestClient

public class AuthRestClient
extends java.lang.Object

Console client for invoking authentication services.


Field Summary
protected  RestClient restClient
           
 
Constructor Summary
AuthRestClient()
           
 
Method Summary
 SyncopeUser authenticate(java.lang.String username, java.lang.String password)
          Authenticate the user.
 java.util.List<java.lang.String> getAdminRoles()
           
 java.util.List<java.lang.String> getManagerRoles()
           
 RestClient getRestClient()
          Getter for restClient attribute.
 void setRestClient(RestClient restClient)
          Setter for restClient attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restClient

protected RestClient restClient
Constructor Detail

AuthRestClient

public AuthRestClient()
Method Detail

authenticate

public SyncopeUser authenticate(java.lang.String username,
                                java.lang.String password)
Authenticate the user.

Parameters:
username -
password -
Returns:
SyncopeUser valued object

getAdminRoles

public java.util.List<java.lang.String> getAdminRoles()

getManagerRoles

public java.util.List<java.lang.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.