ClientOwnershipProofIssuer
public class ClientOwnershipProofIssuer : OwnershipProofIssuer
OwnershipProofIssuer
implementation that uses a locally stored RSA private key
to generated the ownership proof. Mainly used for testing.
-
Initializes a
ClientOwnershipProofIssuer
.Declaration
Swift
public init(privateKey: String, keyManager: SudoKeyManager, keyId: String, issuer: String) throws
Parameters
privateKey
PEM encoded RSA private key to use for signing the ownership proof.
keyManager
KeyManager
instance to use for cryptographic operations.keyId
Key ID to use for storing the RSA private key in the keychain.
issuer
Issuer name to use for the ownership proof.
-
getOwnershipProof(ownerId:
Asynchronoussubject: audience: ) Declaration
Swift
public func getOwnershipProof(ownerId: String, subject: String, audience: String) async throws -> String