Struct xpcom::interfaces::nsIDataSignatureVerifier [] [src]

#[repr(C)]
pub struct nsIDataSignatureVerifier { /* fields omitted */ }

interface nsIDataSignatureVerifier : nsISupports

/**
 * An interface for verifying that a given string of data was signed by the
 * private key matching the given public key.
 */

Methods

impl nsIDataSignatureVerifier
[src]

[src]

Cast this nsIDataSignatureVerifier to one of its base interfaces.

impl nsIDataSignatureVerifier
[src]

[src]

/**
   * Verifies that the data matches the data that was used to generate the
   * signature.
   *
   * @param aData      The data to be tested.
   * @param aSignature The signature of the data, base64 encoded.
   * @param aPublicKey The public part of the key used for signing, DER encoded
   *                   then base64 encoded.
   * @returns true if the signature matches the data, false if not.
   */

[must_use] boolean verifyData (in ACString aData, in ACString aSignature, in ACString aPublicKey);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIDataSignatureVerifier
[src]

IID: nsIID = nsID(2483448320, 14281, 4580, [145, 108, 8, 0, 32, 12, 154, 102])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIDataSignatureVerifier
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIDataSignatureVerifier
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.