Class LegacyProtocol

  • All Implemented Interfaces:
    eu.emi.security.authn.x509.impl.HostnameMismatchCallback, VOMSProtocol

    public class LegacyProtocol
    extends AbstractVOMSProtocol
    implements VOMSProtocol, eu.emi.security.authn.x509.impl.HostnameMismatchCallback
    Protocol implementing the legacy interface.
    • Constructor Detail

      • LegacyProtocol

        public LegacyProtocol​(eu.emi.security.authn.x509.X509CertChainValidatorExt validator,
                              VOMSProtocolListener listener,
                              int connectTimeout,
                              int readTimeout)
    • Method Detail

      • doRequest

        public VOMSResponse doRequest​(VOMSServerInfo endpoint,
                                      eu.emi.security.authn.x509.X509Credential credential,
                                      VOMSACRequest request)
        Description copied from interface: VOMSProtocol
        Makes a request, get the response.
        Specified by:
        doRequest in interface VOMSProtocol
        Parameters:
        endpoint - the voms server endpoint information
        credential - the credentials.
        request - the request.
        Returns:
        a VOMSResponse containing the response.
      • nameMismatch

        public void nameMismatch​(javax.net.ssl.SSLSocket socket,
                                 java.security.cert.X509Certificate peerCertificate,
                                 java.lang.String hostName)
                          throws javax.net.ssl.SSLException
        Specified by:
        nameMismatch in interface eu.emi.security.authn.x509.impl.HostnameMismatchCallback
        Throws:
        javax.net.ssl.SSLException