javax.rmi.ssl

Class SslRMIServerSocketFactory

    • Constructor Detail

      • SslRMIServerSocketFactory

        public SslRMIServerSocketFactory()

        Creates a new SslRMIServerSocketFactory with the default SSL socket configuration.

        SSL connections accepted by server sockets created by this factory have the default cipher suites and protocol versions enabled and do not require client authentication.

      • SslRMIServerSocketFactory

        public SslRMIServerSocketFactory(String[] enabledCipherSuites,
                                 String[] enabledProtocols,
                                 boolean needClientAuth)
                                  throws IllegalArgumentException

        Creates a new SslRMIServerSocketFactory with the specified SSL socket configuration.

        Parameters:
        enabledCipherSuites - names of all the cipher suites to enable on SSL connections accepted by server sockets created by this factory, or null to use the cipher suites that are enabled by default
        enabledProtocols - names of all the protocol versions to enable on SSL connections accepted by server sockets created by this factory, or null to use the protocol versions that are enabled by default
        needClientAuth - true to require client authentication on SSL connections accepted by server sockets created by this factory; false to not require client authentication
        Throws:
        IllegalArgumentException - when one or more of the cipher suites named by the enabledCipherSuites parameter is not supported, when one or more of the protocols named by the enabledProtocols parameter is not supported or when a problem is encountered while trying to check if the supplied cipher suites and protocols to be enabled are supported.
        See Also:
        SSLSocket.setEnabledCipherSuites(java.lang.String[]), SSLSocket.setEnabledProtocols(java.lang.String[]), SSLSocket.setNeedClientAuth(boolean)
      • SslRMIServerSocketFactory

        public SslRMIServerSocketFactory(SSLContext context,
                                 String[] enabledCipherSuites,
                                 String[] enabledProtocols,
                                 boolean needClientAuth)
                                  throws IllegalArgumentException

        Creates a new SslRMIServerSocketFactory with the specified SSLContext and SSL socket configuration.

        Parameters:
        context - the SSL context to be used for creating SSL sockets. If context is null the default SSLSocketFactory or the default SSLServerSocketFactory will be used to create SSL sockets. Otherwise, the socket factory returned by SSLContext.getSocketFactory() or SSLContext.getServerSocketFactory() will be used instead.
        enabledCipherSuites - names of all the cipher suites to enable on SSL connections accepted by server sockets created by this factory, or null to use the cipher suites that are enabled by default
        enabledProtocols - names of all the protocol versions to enable on SSL connections accepted by server sockets created by this factory, or null to use the protocol versions that are enabled by default
        needClientAuth - true to require client authentication on SSL connections accepted by server sockets created by this factory; false to not require client authentication
        Throws:
        IllegalArgumentException - when one or more of the cipher suites named by the enabledCipherSuites parameter is not supported, when one or more of the protocols named by the enabledProtocols parameter is not supported or when a problem is encountered while trying to check if the supplied cipher suites and protocols to be enabled are supported.
        Since:
        1.7
        See Also:
        SSLSocket.setEnabledCipherSuites(java.lang.String[]), SSLSocket.setEnabledProtocols(java.lang.String[]), SSLSocket.setNeedClientAuth(boolean)
    • Method Detail

      • getEnabledCipherSuites

        public final String[] getEnabledCipherSuites()

        Returns the names of the cipher suites enabled on SSL connections accepted by server sockets created by this factory, or null if this factory uses the cipher suites that are enabled by default.

        Returns:
        an array of cipher suites enabled, or null
        See Also:
        SSLSocket.setEnabledCipherSuites(java.lang.String[])
      • getEnabledProtocols

        public final String[] getEnabledProtocols()

        Returns the names of the protocol versions enabled on SSL connections accepted by server sockets created by this factory, or null if this factory uses the protocol versions that are enabled by default.

        Returns:
        an array of protocol versions enabled, or null
        See Also:
        SSLSocket.setEnabledProtocols(java.lang.String[])
      • getNeedClientAuth

        public final boolean getNeedClientAuth()

        Returns true if client authentication is required on SSL connections accepted by server sockets created by this factory.

        Returns:
        true if client authentication is required
        See Also:
        SSLSocket.setNeedClientAuth(boolean)
      • createServerSocket

        public ServerSocket createServerSocket(int port)
                                        throws IOException

        Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters.

        Specified by:
        createServerSocket in interface RMIServerSocketFactory
        Parameters:
        port - the port number
        Returns:
        the server socket on the specified port
        Throws:
        IOException - if an I/O error occurs during server socket creation
      • equals

        public boolean equals(Object obj)

        Indicates whether some other object is "equal to" this one.

        Two SslRMIServerSocketFactory objects are equal if they have been constructed with the same SSL context and SSL socket configuration parameters.

        A subclass should override this method (as well as hashCode()) if it adds instance state that affects equality.

        Overrides:
        equals in class Object
        Parameters:
        obj - the reference object with which to compare.
        Returns:
        true if this object is the same as the obj argument; false otherwise.
        See Also:
        Object.hashCode(), HashMap

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/rmi/ssl/sslrmiserversocketfactory.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut