public enum ExpiredAuthTokenStrategy extends Enum<ExpiredAuthTokenStrategy>
BrightpearlLegacyApiSession, this determines whether the session
should attempt to reauthenticate with configured credentials when a 401 Unauthorized response is received from the
Brightpearl API, which indicates the auth token has expired.| Enum Constant and Description |
|---|
FAIL
Throw
BrightpearlAuthException when 401 responses are received. |
REAUTHENTICATE
Attempt reauthentication when a 401 response is received and credentials are configured.
|
| Modifier and Type | Method and Description |
|---|---|
static ExpiredAuthTokenStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExpiredAuthTokenStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpiredAuthTokenStrategy REAUTHENTICATE
public static final ExpiredAuthTokenStrategy FAIL
BrightpearlAuthException when 401 responses are received.public static ExpiredAuthTokenStrategy[] values()
for (ExpiredAuthTokenStrategy c : ExpiredAuthTokenStrategy.values()) System.out.println(c);
public static ExpiredAuthTokenStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All Rights Reserved.