![]() |
Diffusion Apple API 6.11.5
Unified Client Library for iOS, tvOS and OS X / macOS
|
Credentials contain the proof material to support an authentication request.
The server passes the credentials through to the configured authentication handlers for interpretation.
A credentials object is immutable.
Class Methods | |
(instancetype) | + noCredentials |
Properties | |
NSData * | data |
Instance Methods | |
(instancetype) | - initWithPassword: |
(instancetype) | - initWithData: |
(BOOL) | - isEqualToCredentials: |
- (instancetype) initWithData: | (NSData *) | data |
Returns a credentials object initialized with the given custom data to use as proof material.
data | The application-specific, custom credentials to authenticate with. |
- (instancetype) initWithPassword: | (NSString *) | password |
Returns a credentials object initialized with the given plain-text password to use as proof material.
password | The plain-text password to authenticate with. |
- (BOOL) isEqualToCredentials: | (nullable PTDiffusionCredentials *) | credentials |
Compares the receiver to the given credentials.
credentials | The credentials object with which to compare the receiver. |
YES
if the receiver and the given credentials have the same type and data.+ (instancetype) noCredentials |
Returns a credentials object initialized with an empty type and password.
|
readnonatomicassign |
The data defining the receiver.