Class TlsContextCustomKeyOperationOptions


  • public class TlsContextCustomKeyOperationOptions
    extends java.lang.Object
    Top level configuration for the custom TLS key operations.
    • Constructor Detail

      • TlsContextCustomKeyOperationOptions

        public TlsContextCustomKeyOperationOptions​(TlsKeyOperationHandler operationHandler)
        Creates a new TlsContextCustomKeyOperationOptions and sets the TlsKeyOperationHandler that will be invoked when there is a TLS key operation that needs to be performed. Through the TlsKeyOperationHandler you can add your own private key operations during the mutual TLS handshake.
        Parameters:
        operationHandler - The operation handler to use when performing a TLS key operation.
    • Method Detail

      • withCertificateFilePath

        public TlsContextCustomKeyOperationOptions withCertificateFilePath​(java.lang.String path)
        Use this X.509 certificate (file on disk). The certificate may be specified by other means instead (ex: withCertificateFileContents(java.lang.String))
        Parameters:
        path - path to PEM-formatted certificate file on disk.
        Returns:
        The TlsContextCustomKeyOperationOptions after setting the path
      • withCertificateFileContents

        public TlsContextCustomKeyOperationOptions withCertificateFileContents​(java.lang.String contents)
        Use this X.509 certificate (contents in memory). The certificate may be specified by other means instead (ex: withCertificateFilePath(java.lang.String))
        Parameters:
        contents - contents of PEM-formatted certificate file.
        Returns:
        The TlsContextCustomKeyOperationOptions after certificate contents
      • getCertificateFilePath

        public java.lang.String getCertificateFilePath()
        Returns the path to the X.509 certificate file on disk if it has been set.
        Returns:
        The path to the certificate file
      • getCertificateFileContents

        public java.lang.String getCertificateFileContents()
        Returns the contents of the X.509 certificate if it has been set.
        Returns:
        The contents of the certificate
      • getOperationHandler

        public TlsKeyOperationHandler getOperationHandler()
        Returns the TlsKeyOperationHandler assigned to this class.
        Returns:
        The operation handler that will be used