Interface IbanityHttpSignatureService
- All Known Implementing Classes:
IbanityHttpSignatureServiceImpl
public interface IbanityHttpSignatureService
-
Method Summary
Modifier and TypeMethodDescriptionAlias to be used when the request has no payload.getHttpSignatureHeaders(String httpMethod, URL url, Map<String, String> requestHeaders, InputStream payload) Allows you to create the needed headers to sign an http request following draft http signaturegetHttpSignatureHeaders(String httpMethod, URL url, Map<String, String> requestHeaders, String payload) Allows you to create the needed headers to sign an http request following draft http signature
-
Method Details
-
getHttpSignatureHeaders
Map<String,String> getHttpSignatureHeaders(String httpMethod, URL url, Map<String, String> requestHeaders) Alias to be used when the request has no payload.- Parameters:
httpMethod- the http method of the current request.url- the url containing host, path and query parameters.requestHeaders- the headers of the current request. All ibanity-* headers will included in the signature.- Returns:
- the map with signature related headers: date, digest and signature headers.
- See Also:
-
getHttpSignatureHeaders
Map<String,String> getHttpSignatureHeaders(String httpMethod, URL url, Map<String, String> requestHeaders, String payload) Allows you to create the needed headers to sign an http request following draft http signature- Parameters:
httpMethod- the http method of the current request.url- the url containing host, path and query parameters.requestHeaders- the headers of the current request. All ibanity-* headers will included in the signature.payload- the payload of the actual request.- Returns:
- the map with signature related headers: date, digest and signature headers.
- See Also:
-
getHttpSignatureHeaders
Map<String,String> getHttpSignatureHeaders(String httpMethod, URL url, Map<String, String> requestHeaders, InputStream payload) Allows you to create the needed headers to sign an http request following draft http signature- Parameters:
httpMethod- the http method of the current request.url- the url containing host, path and query parameters.requestHeaders- the headers of the current request. All ibanity-* headers will included in the signature.payload- the payload of the actual request asInputStream.- Returns:
- the map with signature related headers: date, digest and signature headers.
- See Also:
-