Interface KeyProvider

All Known Implementing Classes:
KeyPair, KeyStore

public interface KeyProvider
A KeyProvider is a source of a TLS private-key/certificate pair and optionally intermediate certificate(s).
  • In the TLS server role, it is used to provide the certificate presented by the TLS server. In the server role a KeyProvider is mandatory.
  • In the TLS client role, it is used for TLS client authentication so that the client can identify itself to the server.
  • Method Details

    • accept

      <T> T accept(KeyProviderVisitor<T> visitor)
      Visits the trust provider KeyProviderVisitor. Implementor should call one `visit` method on visitor.
      Parameters:
      visitor - visitor.