Skip to content

Requestor 1.4.0

Latest
Compare
Choose a tag to compare
@reinert reinert released this 03 May 04:19
· 1 commit to master since this release

This release introduces Certificate-Based Authentication in Requestor. This feature supports SSL/TLS certificate authentication to ensure secure communication over networks.

Highlights:

  • SSL/TLS Configuration: Automate SSL context setup using file paths or InputStreams for certificates.
  • Enhanced Security: Offers both file-based and stream-based certificate handling, along with the robust TLSv1.2 protocol.
  • Customizable Trust Management: Allows integration with TrustPolicy for tailored SSL negotiations.

Quick Start:

// File-based certificate authentication
session.req("/api/secure-endpoint").auth(new CertAuth("/path/to/cert.pem", "password"));

// InputStream-based authentication
InputStream certStream = new FileInputStream("/path/to/cert.pem");
session.req("/api/secure-endpoint").auth(new CertAuth(certStream, "password"));

// Using custom TrustPolicy
TrustPolicy myTrustPolicy = new CustomTrustPolicy();
session.req("/api/secure-endpoint").auth(new CertAuth("/path/to/cert.pem", "password", myTrustPolicy));

For more details, refer to our Documentation.