summaryrefslogtreecommitdiffstats
path: root/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/ssl/SslKeyStoreConfigurator.java
blob: 619f4a636edcf29d4d2381a12969c9fb5fc50eb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.http.ssl;

/**
 * An interface for an component that can configure an {@link SslKeyStoreContext}. The implementor can assume that
 * the {@link SslKeyStoreContext} instance is thread-safe and be updated at any time
 * during and after the call to{@link #configure(SslKeyStoreContext)}.
 * Modifying the {@link SslKeyStoreContext} instance will trigger a hot reload of the keystore in JDisc.
 *
 * @author bjorncs
 */
public interface SslKeyStoreConfigurator {
    void configure(SslKeyStoreContext context);
}