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.