Package | Description |
---|---|
org.glassfish.jersey.oauth1.signature |
Jersey OAuth 1 Signature API and Implementation.
|
Modifier and Type | Method and Description |
---|---|
OAuth1Parameters |
OAuth1Parameters.callback(String callback)
Builder pattern method to return
OAuth1Parameters after setting
callback URL. |
OAuth1Parameters |
OAuth1Parameters.clone() |
OAuth1Parameters |
OAuth1Parameters.consumerKey(String consumerKey)
Builder pattern method to return
OAuth1Parameters after setting
consumer key. |
OAuth1Parameters |
OAuth1Parameters.nonce()
Builder pattern method to return
OAuth1Parameters after setting
nonce to a randomly-generated UUID. |
OAuth1Parameters |
OAuth1Parameters.nonce(String nonce)
Builder pattern method to return
OAuth1Parameters after setting
nonce. |
OAuth1Parameters |
OAuth1Parameters.readRequest(OAuth1Request request)
Reads a request for OAuth parameters, and populates this object.
|
OAuth1Parameters |
OAuth1Parameters.realm(String realm)
Builder pattern method to return
OAuth1Parameters after setting
protection realm. |
OAuth1Parameters |
OAuth1Parameters.signature(String signature)
Builder pattern method to return
OAuth1Parameters after setting
signature. |
OAuth1Parameters |
OAuth1Parameters.signatureMethod(String signatureMethod)
Builder pattern method to return
OAuth1Parameters after setting
signature method. |
OAuth1Parameters |
OAuth1Parameters.timestamp()
Builder pattern method to return
OAuth1Parameters after setting
timestamp to the current time. |
OAuth1Parameters |
OAuth1Parameters.timestamp(String timestamp)
Builder pattern method to return
OAuth1Parameters after setting
timestamp. |
OAuth1Parameters |
OAuth1Parameters.token(String token)
Builder pattern method to return
OAuth1Parameters after setting
token. |
OAuth1Parameters |
OAuth1Parameters.verifier(String verifier)
Builder pattern method to return
OAuth1Parameters after setting
verifier code. |
OAuth1Parameters |
OAuth1Parameters.version()
Builder pattern method to return
OAuth1Parameters after setting
version to the default value of 1.0. |
OAuth1Parameters |
OAuth1Parameters.version(String version)
Builder pattern method to return
OAuth1Parameters after setting
version. |
OAuth1Parameters |
OAuth1Parameters.writeRequest(OAuth1Request request)
Writes the OAuth parameters to a request, as an Authorization header.
|
Modifier and Type | Method and Description |
---|---|
String |
OAuth1Signature.generate(OAuth1Request request,
OAuth1Parameters params,
OAuth1Secrets secrets)
Generates and returns an OAuth signature for the given request,
parameters and secrets.
|
void |
OAuth1Signature.sign(OAuth1Request request,
OAuth1Parameters params,
OAuth1Secrets secrets)
Generates an OAuth signature for the given request, parameters and
secrets, and stores it as a signature parameter, and writes the
OAuth parameters to the request as an Authorization header.
|
boolean |
OAuth1Signature.verify(OAuth1Request request,
OAuth1Parameters params,
OAuth1Secrets secrets)
Verifies the OAuth signature for a given request, parameters and
secrets.
|
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.