Initializerswift-nio-ssl 2.29.0NIOSSL
init(customPrivateKey:)
Create a NIOSSLPrivateKey
from a custom private key callback.
init<CustomKey>(customPrivateKey: CustomKey) where CustomKey : NIOSSLCustomPrivateKey, CustomKey : Hashable
Parameters
- customPrivateKey
The custom private key to use with the TLS certificate.
The private key, in addition to needing to conform to NIOSSLCustomPrivateKey
, is also required to be Hashable
. This is because NIOSSLPrivateKey
s are Hashable
.
Other members in extension
Type members
init(bytes: [UInt8], format: NIOSSLSerializationFormats
) throws Create a
NIOSSLPrivateKey
from a buffer of bytes in either PEM or DER format.init<T>(bytes: [UInt8], format: NIOSSLSerializationFormats, passphraseCallback: @escaping NIOSSLPassphraseCallback<T>
) throws Create a
NIOSSLPrivateKey
from a buffer of bytes in either PEM or DER format.init(file: String, format: NIOSSLSerializationFormats
) throws Create a
NIOSSLPrivateKey
from a file at a given path in either PEM or DER format, providing a passphrase callback.init<T>(file: String, format: NIOSSLSerializationFormats, passphraseCallback: @escaping NIOSSLPassphraseCallback<T>
) throws Create a
NIOSSLPrivateKey
from a file at a given path in either PEM or DER format, providing a passphrase callback.static func == (lhs: NIOSSLPrivateKey, rhs: NIOSSLPrivateKey
) -> Bool
Show obsolete interfaces (2)
Hide obsolete interfaces
init(buffer: [Int8], format: NIOSSLSerializationFormats
) throws Create a
NIOSSLPrivateKey
from a buffer of bytes in either PEM or DER format.init<T>(buffer: [Int8], format: NIOSSLSerializationFormats, passphraseCallback: @escaping NIOSSLPassphraseCallback<T>
) throws Create a
NIOSSLPrivateKey
from a buffer of bytes in either PEM or DER format.