Package de.msi.oauth.flow.signature
Interface PlainTextSignature
- All Superinterfaces:
SignatureMethod
- All Known Implementing Classes:
PlainTextSignature.DefaultPlainTextSignature
public interface PlainTextSignature extends SignatureMethod
This represents to the signature type
PLAINTEXT.
It is recommended to use the PlainTextSignature.DefaultPlainTextSignature
implementation.
- Author:
- Martin Siegemund
- See Also:
- PLAINTEXT
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPlainTextSignature.DefaultPlainTextSignatureThe default implementation of thePlainTextSignature. -
Method Summary
Modifier and Type Method Description default <R, E extends Exception>
Rhandle(SignatureMethodHandler<R,E> handler)Handle thisSignatureMethodin a typesafe way by providing aSignatureMethodHandler.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
-