Package de.msi.oauth.flow.signature
Interface HmacSha1Signature
- All Superinterfaces:
SignatureMethod
- All Known Implementing Classes:
HmacSha1Signature.DefaultHmacSha1Signature
public interface HmacSha1Signature
Represents the
HMAC-SHA1 signature method.
It is recommended to use the HmacSha1Signature.DefaultHmacSha1Signature implementation.
- Author:
- Martin Siegemund
- See Also:
- HMAC-SHA1
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHmacSha1Signature.DefaultHmacSha1SignatureThe default implementation of theHmacSha1Signature. -
Method Summary
Modifier and Type Method Description URIendpoint()Retrieve the endpoint which gets addressed by the currentHTTPrequest.default <R, E extends Exception>
Rhandle(SignatureMethodHandler<R,E> handler)Handle thisSignatureMethodin a typesafe way by providing aSignatureMethodHandler.HttpMethodmethod()Retrieve theHttpMethodwhich gets used by the current request.Methods inherited from interface de.msi.oauth.flow.signature.SignatureMethod
consumerSecret, oAuthName, signature
-
Method Details
-
handle
default <R, E extends Exception> R handle(SignatureMethodHandler<R,E> handler) throws E extends ExceptionDescription copied from interface:SignatureMethodHandle thisSignatureMethodin a typesafe way by providing aSignatureMethodHandler.- Specified by:
handlein interfaceSignatureMethod- Type Parameters:
R- the desired return values typeE- the type of exception which is allowed to be thrown- Parameters:
handler- theSignatureMethodHandler- Returns:
- the result of the handling process
- Throws:
E- if a failure occurred while handling theSignatureMethodE extends Exception
-
endpoint
URI endpoint()Retrieve the endpoint which gets addressed by the currentHTTPrequest.- Returns:
- the endpoint
-
method
HttpMethod method()Retrieve theHttpMethodwhich gets used by the current request.- Returns:
- the method
-