PrivateKey

public class PrivateKey : RSAKey

Private Key - Represents private key data.

– Initializers

  • Create a private key using key data.

    Declaration

    Swift

    public init(with data: Data) throws

    Parameters

    data

    Key data

    Return Value

    New PrivateKey instance.

  • Create a key using a native key.

    Declaration

    Swift

    public init(with nativeKey: NativeKey)

    Parameters

    nativeKey

    Native key representation.

    Return Value

    New PrivateKey instance.