Skip to content

sipgate/pushapi-request-verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pushapi-request-verifier

Sipgate offers a push API to all customers. With this api, all relevant telephony events such as incoming or outgoing calls can be sent via HTTP requsts to any customer system.

To ensure that no unwanted requests are processed, customers can use a signature provided with each request to ensure the authenticity of the request. The signature is supplied via the X-Sipgate-Signature header and signs the complete body of the respective request.

This project aims at verifying sipgate push-api requests in a simple and satisfying way.

usage

The Verfier is very easy to use. A complete example can be seen in VerifierTest. Basically a verification looks like this:

final byte[] body = "...".getBytes();
final String signature = "...";

final boolean success = Verifier.verify(body, signature);

About

simple lib to verify push-api requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages