Class OAuth1BuilderImpl.FilterBuilderImpl
java.lang.Object
org.glassfish.jersey.client.oauth1.OAuth1BuilderImpl.FilterBuilderImpl
- All Implemented Interfaces:
OAuth1Builder.FilterFeatureBuilder
- Enclosing class:
OAuth1BuilderImpl
static class OAuth1BuilderImpl.FilterBuilderImpl
extends Object
implements OAuth1Builder.FilterFeatureBuilder
OAuth 1 client filter feature builder default implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AccessTokenprivate final OAuth1Parametersprivate final OAuth1Secrets -
Constructor Summary
ConstructorsConstructorDescriptionFilterBuilderImpl(OAuth1Parameters params, OAuth1Secrets secrets) Create a new builder instance. -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(AccessToken accessToken) Set the Access Token that will be used for signing the requests.javax.ws.rs.core.Featurebuild()Build theoauth 1 filter feature.
-
Field Details
-
params
-
secrets
-
accessToken
-
-
Constructor Details
-
FilterBuilderImpl
FilterBuilderImpl(OAuth1Parameters params, OAuth1Secrets secrets) Create a new builder instance.- Parameters:
params- Pre-configured oauth parameters.secrets- Pre-configured oauth secrets.
-
-
Method Details
-
accessToken
Description copied from interface:OAuth1Builder.FilterFeatureBuilderSet the Access Token that will be used for signing the requests. If this method is not called, no access token will be defined in the resulting filter and it will have to be supplied usingOAuth1ClientSupport.OAUTH_PROPERTY_ACCESS_TOKENrequest property for each request. The property could be also used to override settings defined by this method.- Specified by:
accessTokenin interfaceOAuth1Builder.FilterFeatureBuilder- Parameters:
accessToken- Access token.- Returns:
- this builder.
-
build
public javax.ws.rs.core.Feature build()Description copied from interface:OAuth1Builder.FilterFeatureBuilderBuild theoauth 1 filter feature. The feature can be then registered into the client configuration.- Specified by:
buildin interfaceOAuth1Builder.FilterFeatureBuilder- Returns:
- Client OAuth 1 feature.
-