Package de.msi.oauth.flow.signature
Class RsaSha1Signature.DefaultRsaSha1Signature
java.lang.Object
de.msi.oauth.flow.signature.SignedTextSignature.DefaultSignedTextSignature
de.msi.oauth.flow.signature.RsaSha1Signature.DefaultRsaSha1Signature
- All Implemented Interfaces:
RsaSha1Signature,SignatureMethod
- Enclosing interface:
- RsaSha1Signature
public static final class RsaSha1Signature.DefaultRsaSha1Signature extends de.msi.oauth.flow.signature.SignedTextSignature.DefaultSignedTextSignature implements RsaSha1Signature
The default implementation of the
RsaSha1Signature.
Attention: not yet implemented
- Author:
- Martin Siegemund
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.msi.oauth.flow.signature.RsaSha1Signature
RsaSha1Signature.DefaultRsaSha1Signature -
Constructor Summary
Constructors Constructor Description DefaultRsaSha1Signature(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
-
DefaultRsaSha1Signature
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
-