public class APIAuthenticationResponse extends Object
| Constructor and Description |
|---|
APIAuthenticationResponse(String dataSource,
String authToken,
String username)
Create a new APIAuthToken Object with the given auth token.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthToken()
Returns the unique authentication token which identifies the current
session.
|
String |
getDataSource()
Returns the unique identifier of the data source associated with the user
account associated with this auth token.
|
String |
getUsername()
Returns the user identified by the authentication token associated with
the current session.
|
public APIAuthenticationResponse(String dataSource, String authToken, String username)
dataSource - The unique identifier of the AuthenticationProvider which
authenticated the user.authToken - The auth token to create the new APIAuthToken with.username - The username of the user owning the given token.public String getAuthToken()
public String getUsername()
public String getDataSource()
Copyright © 2016. All rights reserved.