Struct xpcom::interfaces::nsIPK11Token
[−]
[src]
#[repr(C)]pub struct nsIPK11Token { /* fields omitted */ }
interface nsIPK11Token : nsISupports
Methods
impl nsIPK11Token
[src]
pub fn coerce<T: nsIPK11TokenCoerce>(&self) -> &T
[src]
Cast this nsIPK11Token
to one of its base interfaces.
impl nsIPK11Token
[src]
pub unsafe fn GetTokenName(&self, aTokenName: &mut nsACString) -> nsresult
[src]
[must_use] readonly attribute AUTF8String tokenName;
pub unsafe fn GetTokenLabel(&self, aTokenLabel: &mut nsACString) -> nsresult
[src]
[must_use] readonly attribute AUTF8String tokenLabel;
pub unsafe fn GetTokenManID(&self, aTokenManID: &mut nsACString) -> nsresult
[src]
/**
* Manufacturer ID of the token.
*/
[must_use] readonly attribute AUTF8String tokenManID;
pub unsafe fn GetTokenHWVersion(
&self,
aTokenHWVersion: &mut nsACString
) -> nsresult
[src]
&self,
aTokenHWVersion: &mut nsACString
) -> nsresult
/**
* Hardware version of the token.
*/
[must_use] readonly attribute AUTF8String tokenHWVersion;
pub unsafe fn GetTokenFWVersion(
&self,
aTokenFWVersion: &mut nsACString
) -> nsresult
[src]
&self,
aTokenFWVersion: &mut nsACString
) -> nsresult
/**
* Firmware version of the token.
*/
[must_use] readonly attribute AUTF8String tokenFWVersion;
pub unsafe fn GetTokenSerialNumber(
&self,
aTokenSerialNumber: &mut nsACString
) -> nsresult
[src]
&self,
aTokenSerialNumber: &mut nsACString
) -> nsresult
[must_use] readonly attribute AUTF8String tokenSerialNumber;
pub unsafe fn IsLoggedIn(&self, _retval: *mut bool) -> nsresult
[src]
[must_use] boolean isLoggedIn ();
pub unsafe fn Login(&self, force: bool) -> nsresult
[src]
[must_use] void login (in boolean force);
pub unsafe fn LogoutSimple(&self) -> nsresult
[src]
[must_use] void logoutSimple ();
pub unsafe fn LogoutAndDropAuthenticatedResources(&self) -> nsresult
[src]
[must_use] void logoutAndDropAuthenticatedResources ();
pub unsafe fn NeedsLogin(&self, _retval: *mut bool) -> nsresult
[src]
[must_use] boolean needsLogin ();
pub unsafe fn GetNeedsUserInit(&self, aNeedsUserInit: *mut bool) -> nsresult
[src]
[must_use] readonly attribute boolean needsUserInit;
pub unsafe fn Reset(&self) -> nsresult
[src]
[must_use] void reset ();
pub unsafe fn CheckPassword(
&self,
password: &nsACString,
_retval: *mut bool
) -> nsresult
[src]
&self,
password: &nsACString,
_retval: *mut bool
) -> nsresult
/**
* Checks whether the given password is correct. Logs the token out if an
* incorrect password is given.
*
* @param password The password to check.
* @return true if the password was correct, false otherwise.
*/
[must_use] boolean checkPassword (in AUTF8String password);
pub unsafe fn InitPassword(&self, initialPassword: &nsACString) -> nsresult
[src]
[must_use] void initPassword (in AUTF8String initialPassword);
pub unsafe fn ChangePassword(
&self,
oldPassword: &nsACString,
newPassword: &nsACString
) -> nsresult
[src]
&self,
oldPassword: &nsACString,
newPassword: &nsACString
) -> nsresult
[must_use] void changePassword (in AUTF8String oldPassword, in AUTF8String newPassword);
pub unsafe fn GetHasPassword(&self, aHasPassword: *mut bool) -> nsresult
[src]
[must_use] readonly attribute boolean hasPassword;
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 nsIPK11Token
[src]
const IID: nsIID
IID: nsIID = nsID(1360598068, 7634, 4530, [161, 124, 228, 156, 78, 153, 164, 227])
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 nsIPK11Token
[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 nsIPK11Token
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.