public interface OAuth1Builder
OAuth1AuthorizationFlow
using a method
authorizationFlow(String, String, String)
and filter feature
using a method
feature()
. Before one of these methods is invoked, properties common for both features
can be defined using methods of this builder. However, for default OAuth configuration there should not be
no need to call these set*
methods of this builder and the builder can be directly used to build
mentioned features.Modifier and Type | Interface and Description |
---|---|
static interface |
OAuth1Builder.FilterFeatureBuilder
Builder of the
Feature . |
static interface |
OAuth1Builder.FlowBuilder
Builder of the
OAuth1AuthorizationFlow . |
Modifier and Type | Method and Description |
---|---|
OAuth1Builder.FlowBuilder |
authorizationFlow(String requestTokenUri,
String accessTokenUri,
String authorizationUri)
Get the builder of
OAuth1AuthorizationFlow . |
OAuth1Builder.FilterFeatureBuilder |
feature()
Get the builder of
filter feature . |
OAuth1Builder |
nonce(String nonce)
Set the nonce.
|
OAuth1Builder |
realm(String realm)
Set the realm to which the user wants to authenticate.
|
OAuth1Builder |
signatureMethod(String signatureMethod)
Set the signature method name.
|
OAuth1Builder |
timestamp(String timestamp)
Set the timestamp.
|
OAuth1Builder |
version(String version)
Set the version of the OAuth protocol.
|
OAuth1Builder signatureMethod(String signatureMethod)
OAuth1SignatureMethod
and the name is retrieved from
OAuth1SignatureMethod.name()
method. Build-in signature
methods are HMAC-SHA1
, RSA-SHA1
and PLAINTEXT
.
Default value is HMAC-SHA1
.
signatureMethod
- Signature method name.OAuth1Builder realm(String realm)
realm
- Realm on the server to which the user authentication is required.OAuth1Builder timestamp(String timestamp)
Authorization
header. Usually this
parameter is not defined explicitly by this method and will be automatically filled with the current
time during the request.timestamp
- Timestamp value.OAuth1Builder nonce(String nonce)
Authorization
header if defined. Usually this
parameter is not defined explicitly by this method and will be automatically filled with the randomly
generated UID during the request.nonce
- Nonce value.OAuth1Builder version(String version)
Authorization
header otherwise default value 1.1
will be used. Usually this parameter does not need to be
overwritten by this method.version
- OAuth protocol version parameter.OAuth1Builder.FilterFeatureBuilder feature()
filter feature
.OAuth1ClientFeature
.OAuth1Builder.FlowBuilder authorizationFlow(String requestTokenUri, String accessTokenUri, String authorizationUri)
OAuth1AuthorizationFlow
.requestTokenUri
- URI of the endpoint on the Authorization Server where Request Token can be obtained.
The URI is defined by the Service Provider.accessTokenUri
- URI of the endpoint on the Authorization Server where Access Token can be obtained.
The URI is defined by the Service Provider.authorizationUri
- URI of the endpoint on the Authorization Server to which the user (resource owner)
should be redirected in order to grant access to this application (our consumer).
The URI is defined by the Service Provider.OAuth1AuthorizationFlow
.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.