Companion
Properties
Functions
Get an identity with a SecIdentity object. Any intermediate or root certificates required to identify the certificate but not present in the system-wide set of trusted anchor certificates need to be specified in the optional certs parameter. In addition, the specified SecIdentity object is required to be present in the KeyChain, otherwise an exception will be thrown.
Create self-signed certificate and private key, store them in the canonical keystore, and return an identity backed by the new entry. The identity will be stored in the secure storage using the specified alias and can be recovered using that alias, after this method returns.
Create a self-signed certificate TLSIdentity object. The generated private key will be stored in the KeyStore along with its self-signed certificate.
Delete the identity in the keystore with the given alias.
Get a TLSIdentity backed by the information for the passed alias.
Get a TLSIdentity object from the give KeyStore, key alias, and key password. The KeyStore must contain the private key along with the certificate chain at the given key alias and password, otherwise null will be returned.
Imports and creates an identity from the given PKCS12 Data. The imported identity will be stored in the Keychain with the given alias.
Register a KeyStore and key password to use in common APIs.