Deletes a Sudo.
Sudo to delete.
void
IllegalArgumentError
FatalError
SudoNotFoundError
Retrieves a signed ownership proof for the specified owner. The ownership proof JWT has the following payload. { "jti": "DBEEF4EB-F84A-4AB7-A45E-02B05B93F5A3", "owner": "cd73a478-23bd-4c70-8c2b-1403e2085845", "iss": "sudoplatform.sudoservice", "aud": "sudoplatform.virtualcardservice", "exp": 1578986266, "sub": "da17f346-cf49-4db4-98c2-862f85515fc4", "iat": 1578982666 }
"owner" is an unique ID of an identity managed by the issuing serivce. In case of Sudo service this represents unique reference to a Sudo. "sub" is the subject to which this proof is issued, i.e. the user. "aud" is the target audience of the proof.
Sudo Id to generated an ownership proof for.
target audience for this proof.
String: The JWT
ServiceError
UnknownGraphQLError
FatalError
Retrieves all Sudos owned by the signed in user.
Optional
fetchPolicy: FetchOptionSudo[]: An array of Sudos
DownloadError
ServiceError
UnknownGraphQLError
FatalError
Adds a key value pair to the store (keyId, key), then sets that keyId as the pointer to the current symmetric key to use.
As symmetric keys can be rotated, this will also allow a list of symmetric keys to exist in the store in which to decrypt older sudo claims with if needed and also give the ability to set the current symmetric key.
The last symmetric key pushed will be set to the current active symmetric key.
The keyId that points to the symmetric key used for encrypting claims
The symmetric key to encrypt claims with
Subscribes to be notified of new, updated or deleted Sudos. Blob data is not downloaded automatically
so the caller is expected to use listSudos
API if they need to access any associated blobs.
unique ID for the subscriber.
change type to subscribe to.
subscriber to notify.
NotSignedInError
Subscribes to be notified of new, updated and deleted Sudos. Blob data is not downloaded automatically
so the caller is expected to use listSudos
API if they need to access any associated blobs.
unique ID for the subscriber.
subscriber to notify.
NotSignedInError
Unsubscribes the specified subscriber so that it no longer receives notifications about new, updated or deleted Sudos.
unique ID for the subscriber.
change type to unsubscribe from.
Updates a Sudo.
Sudo to update.
new claims keyId
Sudo: The updated Sudo
IllegalArgumentException
IllegalStateError
VersionMismatchError
UploadError
ServiceError
UnknownGraphQLError
FatalError
Generated using TypeDoc
Interface encapsulating a library of functions for calling Sudo service and managing Sudos.