Package software.amazon.awssdk.crt.io
Class TlsContextCustomKeyOperationOptions
- java.lang.Object
-
- software.amazon.awssdk.crt.io.TlsContextCustomKeyOperationOptions
-
public class TlsContextCustomKeyOperationOptions extends Object
Top level configuration for the custom TLS key operations.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCertificateFileContents()
Returns the contents of the X.509 certificate if it has been set.String
getCertificateFilePath()
Returns the path to the X.509 certificate file on disk if it has been set.TlsKeyOperationHandler
getOperationHandler()
Returns the TlsKeyOperationHandler assigned to this class.TlsContextCustomKeyOperationOptions
withCertificateFileContents(String contents)
Use this X.509 certificate (contents in memory).TlsContextCustomKeyOperationOptions
withCertificateFilePath(String path)
Use this X.509 certificate (file on disk).
-
-
-
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(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(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 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 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
-
-