summaryrefslogtreecommitdiffstats
path: root/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/ssl/SslTrustStoreContext.java
blob: fc8cf397b249139662e38f9794a1657ba3b787cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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;

import java.security.KeyStore;

/**
 * An interface to update the truststore in JDisc. Any update will trigger a hot reload and new connections will
 * authenticated using the update truststore.
 *
 * @author bjorncs
 */
public interface SslTrustStoreContext {
    void updateTrustStore(KeyStore trustStore);
    void updateTrustStore(KeyStore trustStore, String password);
    void updateTrustStore(String trustStorePath, String trustStoreType, String trustStorePassword);
}