Enum parsec_tool::subcommands::Subcommand[][src]

pub enum Subcommand {
    Ping(Ping),
    ListProviders(ListProviders),
    ListAuthenticators(ListAuthenticators),
    ListOpcodes(ListOpcodes),
    ListKeys(ListKeys),
    GenerateRandom(GenerateRandom),
    ExportPublicKey(ExportPublicKey),
    CreateRsaKey(CreateRsaKey),
    CreateEccKey(CreateEccKey),
    Decrypt(Decrypt),
    Sign(Sign),
    DeleteKey(DeleteKey),
    ListClients(ListClients),
    DeleteClient(DeleteClient),
}

Command-line interface to Parsec operations.

Variants

Ping(Ping)

Ping the Parsec service and prints the wire protocol version.

ListProviders(ListProviders)

List the available providers supported by the Parsec service.

ListAuthenticators(ListAuthenticators)

List the available authenticators supported by the Parsec service.

ListOpcodes(ListOpcodes)

List the supported opcodes for a given provider.

ListKeys(ListKeys)

List all keys belonging to the application.

GenerateRandom(GenerateRandom)

Generate a sequence of random bytes.

ExportPublicKey(ExportPublicKey)

Export the public part of the key pair in PEM format

CreateRsaKey(CreateRsaKey)

Create a RSA key pair (2048 bits). Used by default for asymmetric encryption with RSA PKCS#1 v1.5.

CreateEccKey(CreateEccKey)

Create a ECC key pair (curve secp256r1). Used by default for asymmetric signing with ECDSA (SHA-256).

Decrypt(Decrypt)

Decrypt data using the algorithm of the key

Sign(Sign)

Sign data using the algorithm of the key (base64 signature)

DeleteKey(DeleteKey)

Delete a key.

ListClients(ListClients)

Lists all clients currently having data in the service (admin operation).

DeleteClient(DeleteClient)

Delete all data a client has in the service (admin operation).

Implementations

impl Subcommand[src]

pub fn run(&self, client: BasicClient) -> Result<()>[src]

Runs the subcommand.

Trait Implementations

impl Debug for Subcommand[src]

impl StructOpt for Subcommand[src]

impl StructOptInternal for Subcommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.