All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.tls.TlsConfigurationRegistry Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
package io.quarkus.tls;

import java.util.Optional;

public interface TlsConfigurationRegistry {

    /**
     * Returns the named transport layer security configuration.
     *
     * @param name the name
     * @return the configuration, empty if not configured.
     */
    Optional get(String name);

    /**
     * Returns the default transport layer security configuration.
     *
     * @return the configuration, empty if not configured.
     */
    Optional getDefault();

    /**
     * Registers a TLS configuration into the registry.
     * Note that only subsequents calls to {@link #get(String)} will return the configuration.
     * 

* The passed configuration is not validated, so it's up to the caller to ensure the configuration is correct. * * @param name the name of the configuration, cannot be {@code null}, cannot be {@code }. * @param configuration the configuration cannot be {@code null}. */ void register(String name, TlsConfiguration configuration); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy