WLSimpleDataSharing Class Reference
Inherits from | NSObject |
Declared in | WLSimpleDataSharing.h |
Contains Simple Data Sharing methods to share tokens across a group of applications.
Tasks
+ setSharedToken:value:
+ getSharedToken:
+ clearSharedToken:
Class Methods
clearSharedToken:
Removes the token from shared credential storage.
+ (BOOL)clearSharedToken:(NSString *)name
Parameters
- name
-
The name of the token to remove from shared credential storage.
Return Value
Boolean indicating whether the token was found and successfully removed.
Availability
IBM MobileFirst Foundation V6.2.0
Declared In
WLSimpleDataSharing.h
getSharedToken:
Retrieves the value of a token in the shared credential storage.
+ (NSString *)getSharedToken:(NSString *)name
Parameters
- name
-
The name of the token to retrive from shared credential storage.
Return Value
A string representing the value of the token found in shared credential storage or nil if not found.
Availability
IBM MobileFirst Foundation V6.2.0
Declared In
WLSimpleDataSharing.h
setSharedToken:value:
Saves a key,value pair to a shared credential storage available to a group of applications in the same family.
+ (BOOL)setSharedToken:(NSString *)name value:(NSString *)value
Parameters
- name
-
The key or name of token to save to the shared credential storage
- value
-
The value of the token to save to the shared credential storage
Return Value
Boolean indicating whether the token was successfully stored.
Availability
IBM MobileFirst Foundation V6.2.0
Declared In
WLSimpleDataSharing.h
© Copyright IBM Corp. 2017