public class LegacyAuthorisation extends Object implements AppAuthorisation
ACCOUNT_TOKEN_HEADER, APP_HEADER, DEV_HEADER, LEGACY_AUTH_HEADER, STAFF_TOKEN_HEADER| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Account |
getAccount()
Returns the Brightpearl customer's account.
|
Map<String,String> |
getHeaders()
Returns authentication headers required for requests made to the customer's account.
|
int |
hashCode() |
static LegacyAuthorisation |
staff(Account account,
String authToken)
Create legacy authentication details using an account and staff token.
|
String |
toString() |
public static LegacyAuthorisation staff(Account account, String authToken)
account - Brightpearl customer account details.authToken - Staff authentication token.public Account getAccount()
AppAuthorisationgetAccount in interface AppAuthorisationpublic Map<String,String> getHeaders()
AppAuthorisationgetHeaders in interface AppAuthorisationCopyright © 2014. All Rights Reserved.