Package com.labs64.netlicensing.provider
Class AbstractRestProvider
java.lang.Object
com.labs64.netlicensing.provider.AbstractRestProvider
- All Implemented Interfaces:
RestProvider
- Direct Known Subclasses:
RestProviderImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.labs64.netlicensing.provider.RestProvider
RestProvider.Configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(Authentication authentication) authenticate
(String token) authenticate
(String username, String password) void
configure
(RestProvider.Configuration configuration) protected Authentication
protected RestProvider.Configuration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.labs64.netlicensing.provider.RestProvider
call
-
Constructor Details
-
AbstractRestProvider
public AbstractRestProvider()
-
-
Method Details
-
authenticate
- Specified by:
authenticate
in interfaceRestProvider
- Parameters:
authentication
-Authentication
object- Returns:
- authenticated RESTful provider
-
authenticate
- Specified by:
authenticate
in interfaceRestProvider
- Parameters:
username
- username used for authenticationpassword
- password used for authentication- Returns:
- authenticated RESTful provider
-
authenticate
- Specified by:
authenticate
in interfaceRestProvider
- Parameters:
token
- token used for authentication- Returns:
- authenticated RESTful provider
-
getAuthentication
-
configure
- Specified by:
configure
in interfaceRestProvider
- Parameters:
configuration
-RestProvider.Configuration
configuration to use for the provider
-
getConfiguration
-