public class APIAuthenticationResult extends Object
| Constructor and Description |
|---|
APIAuthenticationResult(String authToken,
String username,
String dataSource,
List<String> availableDataSources)
Create a new APIAuthenticationResult object containing the given data.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthToken()
Returns the unique authentication token which identifies the current
session.
|
List<String> |
getAvailableDataSources()
Returns the identifiers of all data sources available to the user
associated with the current session.
|
String |
getDataSource()
Returns the unique identifier of the data source associated with the user
account associated with the current session.
|
String |
getUsername()
Returns the user identified by the authentication token associated with
the current session.
|
public APIAuthenticationResult(String authToken, String username, String dataSource, List<String> availableDataSources)
authToken - The unique token generated for the user that authenticated, to be
used for the duration of their session.username - The username of the user owning the given token.dataSource - The unique identifier of the AuthenticationProvider which
authenticated the user.availableDataSources - The unique identifier of all AuthenticationProviders to which the
user now has access.public String getAuthToken()
public String getUsername()
public String getDataSource()
Copyright © 2016. All rights reserved.