|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LoginTokensHelper
Helper class for LoginTokens.
| Method Summary | |
|---|---|
Object |
authenticate(String username,
String password,
Class<?> loginClass,
Object loginService)
Authenticates against the DFA API. |
Class<?> |
getLoginClass(String stubPackage)
Retrieves the Class object representing the login service. |
Object |
getLoginService(DfaSession session,
Class<?> loginClass)
Returns a DfaServiceClient wrapping the login service. |
Class<?> |
getUserProfileClass(String stubPackage)
Retrieves the Class object representing user profiles. |
String |
retrieveToken(Object userProfile)
Retrieves the user's authentication token from the UserProfile
returned by the DFA API. |
| Method Detail |
|---|
Class<?> getLoginClass(String stubPackage)
throws ClassNotFoundException
Class object representing the login service.
stubPackage - the package where all generated stubs are located
Class object representing the login service
ClassNotFoundException - if the class cannot be resolved
Class<?> getUserProfileClass(String stubPackage)
throws ClassNotFoundException
Class object representing user profiles.
stubPackage - the package where all generated stubs are located
Class object representing user profiles
ClassNotFoundException - if the class cannot be resolved
Object getLoginService(DfaSession session,
Class<?> loginClass)
DfaServiceClient wrapping the login service.
session - the DFA sessionloginClass - the Class type of the login service
Object authenticate(String username,
String password,
Class<?> loginClass,
Object loginService)
throws IllegalArgumentException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException
username - the usernamepassword - the passwordloginClass - the Class type of the login serviceloginService - a service client object wrapping the login service
UserProfile response from the API
IllegalArgumentException - if one of the arguments used in
authenticating is not allowed
IllegalAccessException - if the authenticate method cannot be
accessed
InvocationTargetException - if an error occurs while invoking the
authenticate method
NoSuchMethodException - if the authenticate method cannot be
located
String retrieveToken(Object userProfile)
throws ClassNotFoundException,
InvocationTargetException,
NoSuchMethodException,
IllegalAccessException
UserProfile
returned by the DFA API.
userProfile - the UserProfile object returned by the API
ClassNotFoundException - if the UserProfile class cannot be
located
InvocationTargetException - if an error occurs while invoking
getToken on the given object
NoSuchMethodException - if the getToken method cannot be
found.
IllegalAccessException - if the getToken method cannot be
accessed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||