Package de.msi.oauth.flow.signature
Class HmacSha1Signature.DefaultHmacSha1Signature
java.lang.Object
de.msi.oauth.flow.signature.SignedTextSignature.DefaultSignedTextSignature
de.msi.oauth.flow.signature.HmacSha1Signature.DefaultHmacSha1Signature
- All Implemented Interfaces:
HmacSha1Signature,SignatureMethod
- Enclosing interface:
- HmacSha1Signature
public static final class HmacSha1Signature.DefaultHmacSha1Signature extends de.msi.oauth.flow.signature.SignedTextSignature.DefaultSignedTextSignature implements HmacSha1Signature
The default implementation of the
HmacSha1Signature.- Author:
- Martin Siegemund
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.msi.oauth.flow.signature.HmacSha1Signature
HmacSha1Signature.DefaultHmacSha1Signature -
Constructor Summary
Constructors Constructor Description DefaultHmacSha1Signature(URI endpoint, HttpMethod method, ConsumerSecret consumerSecret)Create a new instance. -
Method Summary
Modifier and Type Method Description URIendpoint()Retrieve the endpoint which gets addressed by the currentHTTPrequest.HttpMethodmethod()Retrieve theHttpMethodwhich gets used by the current request.SignatureMethodNameoAuthName()Retrieve the name of the signature method.Signaturesignature(SignatureParams params)Generate the signature.StringtoString()Methods inherited from class de.msi.oauth.flow.signature.SignedTextSignature.DefaultSignedTextSignature
consumerSecret, endpoint, method
-
Constructor Details
-
DefaultHmacSha1Signature
Create a new instance.- Parameters:
endpoint- the endpoint of the ongoingHTTPrequestmethod- the method of the ongoingHTTPrequestconsumerSecret- theconsumer secret
-
-
Method Details
-
oAuthName
Description copied from interface:SignatureMethodRetrieve the name of the signature method.- Specified by:
oAuthNamein interfaceSignatureMethod- Returns:
- the name
-
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
- Overrides:
toStringin classde.msi.oauth.flow.signature.SignedTextSignature.DefaultSignedTextSignature
-
endpoint
Retrieve the endpoint which gets addressed by the currentHTTPrequest.- Returns:
- the endpoint
-
method
Retrieve theHttpMethodwhich gets used by the current request.- Returns:
- the method
-