com.mf.roundhouse.core.services
Class AuthServiceClient

java.lang.Object
  extended bycom.mf.roundhouse.core.services.AuthServiceClient

public class AuthServiceClient
extends java.lang.Object

Simple client stub for interacting with the authentication service.


Constructor Summary
AuthServiceClient()
           
 
Method Summary
 AuthenticationResponse authenticateByEmail(java.lang.String email, java.lang.String password)
           
 AuthenticationResponse authenticateByUserId(java.lang.String userId, java.lang.String password)
           
 java.util.Collection getPermissionsForAuthToken(java.lang.String authToken)
           
 java.lang.String getServiceUri()
           
 java.lang.String getServiceUrl()
           
static void main(java.lang.String[] args)
           
 AuthenticationResponse processRequest(AuthenticationRequest request)
           
 void setServiceUri(java.lang.String string)
           
 void setServiceUrl(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthServiceClient

public AuthServiceClient()
Method Detail

getPermissionsForAuthToken

public java.util.Collection getPermissionsForAuthToken(java.lang.String authToken)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

authenticateByUserId

public AuthenticationResponse authenticateByUserId(java.lang.String userId,
                                                   java.lang.String password)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

authenticateByEmail

public AuthenticationResponse authenticateByEmail(java.lang.String email,
                                                  java.lang.String password)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

processRequest

public AuthenticationResponse processRequest(AuthenticationRequest request)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getServiceUri

public java.lang.String getServiceUri()
Returns:

getServiceUrl

public java.lang.String getServiceUrl()
Returns:

setServiceUri

public void setServiceUri(java.lang.String string)
Parameters:
string -

setServiceUrl

public void setServiceUrl(java.lang.String string)
Parameters:
string -

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2004 Media Fortress, LLC. Licensed for commercial use under the Apache 2.0 License.