Package org.italiangrid.voms.request
Class SSLSocketFactoryProvider
java.lang.Object
org.italiangrid.voms.request.SSLSocketFactoryProvider
Provides an SSL socket factory configured using CAnL.
This class is responsible for creating an
SSLSocketFactory
that is configured with a
given X.509 credential and certificate validator. It supports optional hostname verification.-
Constructor Summary
ConstructorsConstructorDescriptionSSLSocketFactoryProvider
(eu.emi.security.authn.x509.X509Credential credential) Constructs anSSLSocketFactoryProvider
with the given credential and a default validator.SSLSocketFactoryProvider
(eu.emi.security.authn.x509.X509Credential credential, eu.emi.security.authn.x509.X509CertChainValidatorExt validator) Constructs anSSLSocketFactoryProvider
with the given credential and validator, with hostname verification enabled.SSLSocketFactoryProvider
(eu.emi.security.authn.x509.X509Credential credential, eu.emi.security.authn.x509.X509CertChainValidatorExt validator, boolean skipHostnameChecks) Constructs anSSLSocketFactoryProvider
with the given credential, validator, and hostname check setting. -
Method Summary
Modifier and TypeMethodDescriptionReturns an SSL socket factory configured with the provided credential and validator.
-
Constructor Details
-
SSLSocketFactoryProvider
public SSLSocketFactoryProvider(eu.emi.security.authn.x509.X509Credential credential, eu.emi.security.authn.x509.X509CertChainValidatorExt validator, boolean skipHostnameChecks) Constructs anSSLSocketFactoryProvider
with the given credential, validator, and hostname check setting.- Parameters:
credential
- the X.509 credentialvalidator
- the certificate chain validatorskipHostnameChecks
- true to disable hostname verification, false otherwise
-
SSLSocketFactoryProvider
public SSLSocketFactoryProvider(eu.emi.security.authn.x509.X509Credential credential, eu.emi.security.authn.x509.X509CertChainValidatorExt validator) Constructs anSSLSocketFactoryProvider
with the given credential and validator, with hostname verification enabled.- Parameters:
credential
- the X.509 credentialvalidator
- the certificate chain validator
-
SSLSocketFactoryProvider
public SSLSocketFactoryProvider(eu.emi.security.authn.x509.X509Credential credential) Constructs anSSLSocketFactoryProvider
with the given credential and a default validator.- Parameters:
credential
- the X.509 credential
-
-
Method Details
-
getSSLSockectFactory
Returns an SSL socket factory configured with the provided credential and validator.- Returns:
- the
SSLSocketFactory
object
-