pub unsafe trait ASCredentialIdentity: NSObjectProtocol {
// Provided methods
unsafe fn serviceIdentifier(
&self,
) -> Retained<ASCredentialServiceIdentifier>
where Self: Sized + Message { ... }
unsafe fn user(&self) -> Retained<NSString>
where Self: Sized + Message { ... }
unsafe fn recordIdentifier(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn rank(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn setRank(&self, rank: NSInteger)
where Self: Sized + Message { ... }
}
Available on crate feature
ASCredentialIdentity
only.Expand description
An ASCredentialIdentity is used to describe an identity that can use a service upon successful authentication. Use this class to save entries into ASCredentialIdentityStore.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn serviceIdentifier(&self) -> Retained<ASCredentialServiceIdentifier>
Available on crate feature ASCredentialServiceIdentifier
only.
unsafe fn serviceIdentifier(&self) -> Retained<ASCredentialServiceIdentifier>
ASCredentialServiceIdentifier
only.Get the service identifier.
Sourceunsafe fn recordIdentifier(&self) -> Option<Retained<NSString>>
unsafe fn recordIdentifier(&self) -> Option<Retained<NSString>>
Get the record identifier.
You can utilize the record identifier to uniquely identify the credential identity in your local database.
Sourceunsafe fn rank(&self) -> NSInteger
unsafe fn rank(&self) -> NSInteger
Get or set the rank of the credential identity object.
The system may utilize the rank to decide which credential identity precedes the other if two identities have the same service identifier. A credential identity with a larger rank value precedes one with a smaller value if both credential identities have the same service identifier. The default value of this property is 0.
Trait Implementations§
Source§impl ProtocolType for dyn ASCredentialIdentity
impl ProtocolType for dyn ASCredentialIdentity
impl<T> ImplementedBy<T> for dyn ASCredentialIdentity
Implementations on Foreign Types§
impl<T> ASCredentialIdentity for ProtocolObject<T>where
T: ?Sized + ASCredentialIdentity,
Implementors§
impl ASCredentialIdentity for ASOneTimeCodeCredentialIdentity
Available on crate feature
ASOneTimeCodeCredentialIdentity
only.impl ASCredentialIdentity for ASPasskeyCredentialIdentity
Available on crate feature
ASPasskeyCredentialIdentity
only.impl ASCredentialIdentity for ASPasswordCredentialIdentity
Available on crate feature
ASPasswordCredentialIdentity
only.