pub enum DeviceSubcommand {
List {
include_revoked: bool,
},
Add {
key: String,
device_key: String,
curve: String,
},
Link {
key: String,
device_key: String,
device_did: String,
payload: Option<PathBuf>,
schema: Option<PathBuf>,
expires_in: Option<u64>,
note: Option<String>,
},
Remove {
device_did: String,
key: String,
},
Revoke {
device_did: String,
key: String,
note: Option<String>,
dry_run: bool,
},
Resolve {
device_did: String,
},
Pair(PairCommand),
VerifyAttestation(VerifyCommand),
Extend {
device_did: String,
expires_in: u64,
key: String,
device_key: String,
},
}Variants§
List
List all authorized devices for the current identity.
Add
Add a device as a delegated identifier of the identity.
The new device gets its own KERI KEL (a delegated inception) that the
root identity anchors — the keripy-native, device-bound way to grant a
device signing authority. (Use link for the legacy attestation flow.)
Link
Authorize a new device to act on behalf of the identity (legacy attestation).
Fields
Remove
Remove a device from the shared identity’s controller set by signing a rotation on the shared KEL.
Semantically distinct from revoke: remove changes who can
sign for the identity by producing a new rot event; revoke
produces an attestation revocation that marks a specific
attestation inactive without touching the controller set.
Self-removal is rejected at the CLI with a pointer to
auths reset. The authoritative guard lives in the
SDK — even callers that bypass the CLI check hit
SharedKelError::WouldOrphanIdentity.
Revoke
Revoke an existing device authorization using the identity key.
Resolve
Resolve a device to its owner identity.
Pair(PairCommand)
Link devices to your identity via QR code or short code.
VerifyAttestation(VerifyCommand)
Verify device authorization signatures (attestation).
Extend
Extend the expiration date of an existing device authorization.
Trait Implementations§
Source§impl Clone for DeviceSubcommand
impl Clone for DeviceSubcommand
Source§fn clone(&self) -> DeviceSubcommand
fn clone(&self) -> DeviceSubcommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceSubcommand
impl Debug for DeviceSubcommand
Source§impl FromArgMatches for DeviceSubcommand
impl FromArgMatches for DeviceSubcommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for DeviceSubcommand
impl Subcommand for DeviceSubcommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand