Enum Class BoxFetcherConfig.AuthMethod
java.lang.Object
java.lang.Enum<BoxFetcherConfig.AuthMethod>
com.norconex.crawler.fs.fetch.impl.box.BoxFetcherConfig.AuthMethod
- All Implemented Interfaces:
Serializable,Comparable<BoxFetcherConfig.AuthMethod>,Constable
- Enclosing class:
BoxFetcherConfig
How the fetcher gets the access token it calls Box with.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe access token given asaccessToken, or as the password of the credentials, is used as is.A Box application using Client Credentials Grant: the credentials hold its client ID (user name) and client secret (password), andenterpriseIdsays which enterprise to act in. -
Method Summary
Modifier and TypeMethodDescriptionstatic BoxFetcherConfig.AuthMethodReturns the enum constant of this class with the specified name.static BoxFetcherConfig.AuthMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCESS_TOKEN
The access token given asaccessToken, or as the password of the credentials, is used as is. Box access tokens expire, so this suits a token issued to last or a short test. -
CLIENT_CREDENTIALS
A Box application using Client Credentials Grant: the credentials hold its client ID (user name) and client secret (password), andenterpriseIdsays which enterprise to act in. A new access token is requested when the last one expires.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-