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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate eu.emi.security.authn.x509.X509Credential
The X.509 credential used for SSL connections.private boolean
Flag indicating whether hostname checks should be skipped.private eu.emi.security.authn.x509.X509CertChainValidatorExt
The certificate chain validator. -
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.
-
Field Details
-
credential
private eu.emi.security.authn.x509.X509Credential credentialThe X.509 credential used for SSL connections. -
validator
private eu.emi.security.authn.x509.X509CertChainValidatorExt validatorThe certificate chain validator. -
skipHostnameChecks
private boolean skipHostnameChecksFlag indicating whether hostname checks should be skipped.
-
-
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
-