Structure
PCRenewRequest
public struct PCRenewRequest
Holds user's renew data
Methods
create(userToRenew:challenge:password:newPublicKey:signer:completion:)
public static func create(
userToRenew: PCUser,
challenge: RenewKeyChallenge,
password: String,
newPublicKey: String,
signer: @escaping (_ data: Data) -> Result<String, Error>,
completion: @escaping (_ result: Result<PCRenewRequest, Error>) -> Void
)
Creates PCRenewRequest instance
Parameters
Name | Type | Description |
---|---|---|
user | The user to be renewed |
|
challenge | RenewKeyChallenge |
An additional data to renew operation |
password | String |
The user's password |
newPublicKey | String |
The new public key to register |
signer | @escaping (_ data: Data) -> Result<String, Error> |
The function to sign data |
completion | @escaping (_ result: Result<PCRenewRequest, Error>) -> Void |
A closure to be invoked after finishing |
result | Returns |