org.glassfish.jersey.client.oauth1
Interface OAuth1Builder.FilterFeatureBuilder

Enclosing interface:
OAuth1Builder

public static interface OAuth1Builder.FilterFeatureBuilder

Builder of the Feature.


Method Summary
 OAuth1Builder.FilterFeatureBuilder accessToken(AccessToken accessToken)
          Set the Access Token that will be used for signing the requests.
 javax.ws.rs.core.Feature build()
          Build the oauth 1 filter feature.
 

Method Detail

accessToken

OAuth1Builder.FilterFeatureBuilder accessToken(AccessToken accessToken)
Set 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 using OAuth1ClientSupport.OAUTH_PROPERTY_ACCESS_TOKEN request property for each request. The property could be also used to override settings defined by this method.

Parameters:
accessToken - Access token.
Returns:
this builder.

build

javax.ws.rs.core.Feature build()
Build the oauth 1 filter feature. The feature can be then registered into the client configuration.

Returns:
Client OAuth 1 feature.


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.