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]
pub fn coerce<T: nsIDataSignatureVerifierCoerce>(&self) -> &T
[src]
Cast this nsIDataSignatureVerifier
to one of its base interfaces.
impl nsIDataSignatureVerifier
[src]
pub unsafe fn VerifyData(
&self,
aData: &nsACString,
aSignature: &nsACString,
aPublicKey: &nsACString,
_retval: *mut bool
) -> nsresult
[src]
&self,
aData: &nsACString,
aSignature: &nsACString,
aPublicKey: &nsACString,
_retval: *mut bool
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIDataSignatureVerifier
[src]
const IID: nsIID
IID: nsIID = nsID(2483448320, 14281, 4580, [145, 108, 8, 0, 32, 12, 154, 102])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDataSignatureVerifier
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.