Package de.msi.oauth.flow.signature
Class PlainTextSignature.DefaultPlainTextSignature
java.lang.Object
de.msi.oauth.flow.signature.PlainTextSignature.DefaultPlainTextSignature
- All Implemented Interfaces:
PlainTextSignature,SignatureMethod
- Enclosing interface:
- PlainTextSignature
public static final class PlainTextSignature.DefaultPlainTextSignature extends Object implements PlainTextSignature
The default implementation of the
PlainTextSignature.- Author:
- Martin Siegemund
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.msi.oauth.flow.signature.PlainTextSignature
PlainTextSignature.DefaultPlainTextSignature -
Constructor Summary
Constructors Constructor Description DefaultPlainTextSignature(ConsumerSecret consumerSecret)Create a new instance. -
Method Summary
Modifier and Type Method Description ConsumerSecretconsumerSecret()Retrieve theconsumer secretwhich is bound to a specific service providerSignatureMethodNameoAuthName()Retrieve the name of the signature method.Signaturesignature(SignatureParams params)Generate the signature.StringtoString()
-
Constructor Details
-
DefaultPlainTextSignature
Create a new instance.- Parameters:
consumerSecret- the mandatoryconsumer secret
-
-
Method Details
-
oAuthName
Description copied from interface:SignatureMethodRetrieve the name of the signature method.- Specified by:
oAuthNamein interfaceSignatureMethod- Returns:
- the name
-
consumerSecret
Description copied from interface:SignatureMethodRetrieve theconsumer secretwhich is bound to a specific service provider- Specified by:
consumerSecretin interfaceSignatureMethod- Returns:
- the
consumer secret
-
signature
Description copied from interface:SignatureMethodGenerate the signature.- Specified by:
signaturein interfaceSignatureMethod- Parameters:
params- theSignatureParamswhich are required by thisSignatureMethodto generate the signature- Returns:
- the signature
-
toString
-