Interface SignatureParams
- All Known Subinterfaces:
PlainTextSignatureParams,SignedTextSignatureParams
- All Known Implementing Classes:
PlainTextSignatureParams.DefaultPlainTextSignatureParams,SignedTextSignatureParams.DefaultSignedTextSignatureParams
public interface SignatureParams
A generic signature parameter type, required to create the
OAuth
signature.- Author:
- Martin Siegemund
- See Also:
- Signing Requests
-
Method Summary
Modifier and Type Method Description <R, E extends Exception>
Rhandle(SignatureParamsHandler<R,E> handler)Handle theSignatureParamsin a typesafe way.Optional<TokenSecret>tokenSecret()Retrieve the token secret.
-
Method Details
-
tokenSecret
Optional<TokenSecret> tokenSecret()Retrieve the token secret.- Returns:
- the secret or
Optional.empty()if not preset
-
handle
<R, E extends Exception> R handle(SignatureParamsHandler<R,E> handler) throws E extends ExceptionHandle theSignatureParamsin a typesafe way.- Type Parameters:
R- the type of the return valueE- the type of the thrown exception- Parameters:
handler- theSignatureParamsHandler- Returns:
- the result
- Throws:
E- if the handling failedE extends Exception
-