Package software.amazon.awssdk.crt.io
Class TlsContextCustomKeyOperationOptions
java.lang.Object
software.amazon.awssdk.crt.io.TlsContextCustomKeyOperationOptions
Top level configuration for the custom TLS key operations.
-
Constructor Summary
ConstructorsConstructorDescriptionTlsContextCustomKeyOperationOptions(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
Modifier and TypeMethodDescriptionReturns the contents of the X.509 certificate if it has been set.Returns the path to the X.509 certificate file on disk if it has been set.Returns the TlsKeyOperationHandler assigned to this class.withCertificateFileContents(String contents) Use this X.509 certificate (contents in memory).Use this X.509 certificate (file on disk).
-
Constructor Details
-
TlsContextCustomKeyOperationOptions
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 Details
-
withCertificateFilePath
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
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
Returns the path to the X.509 certificate file on disk if it has been set.- Returns:
- The path to the certificate file
-
getCertificateFileContents
Returns the contents of the X.509 certificate if it has been set.- Returns:
- The contents of the certificate
-
getOperationHandler
Returns the TlsKeyOperationHandler assigned to this class.- Returns:
- The operation handler that will be used
-