HID APPROVE SDK
5.13
HID Approve SDK for iOS/macOS
|
Encapsulates an active service container instance. More...
#import <HIDContainer.h>
Instance Methods | |
(BOOL) | - addKey:withProtectionPolicyId:withPassword:error: |
Adds a key to the container. More... | |
(NSArray *) | - findKeys:error: |
Retrieves a key handle from the secure keystore based on input parameter filter. More... | |
(NSDate *) | - getCreationDate: |
Gets the activation or renewal creation date for this container. More... | |
(NSDate *) | - getExpiryDate: |
Gets the server defined expiration date this container. More... | |
(NSInteger) | - getId |
Get the identifier of this container. More... | |
(NSString *) | - getName |
Gets the Friendly Name associated with this container. More... | |
(NSDate *) | - getOriginalCreationDate: |
Gets the first creation date of this container. More... | |
(NSString *) | - getProperty:error: |
Returns container property. More... | |
(id< HIDProtectionPolicy >) | - getProtectionPolicy: |
Gets the protection policy associated with container. More... | |
(NSDate *) | - getRenewalDate: |
Gets the renewal date limit for this container to remain fully functional (support is limited or not working after this date). More... | |
(NSString *) | - getServerURL |
Gets the server URL associated with this container. More... | |
(NSString *) | - getUserId |
Gets the identifier of the user for this container. More... | |
(BOOL) | - isFIPSModeEnabled |
Checks if FIPS 140-2 mode is required. More... | |
(Boolean) | - isRenewable:error: |
Verify whether the container renewal is possible. More... | |
(Boolean) | - renew:withSessionPassword:withListener:error: |
Triggers the container service key renewal process with the server for all container keys. More... | |
(NSArray *) | - retrieveTransactionIds:withParams:error: |
Retrieve a list of pending transaction IDs from the container. More... | |
(BOOL) | - setConnectionConfiguration:error: |
Sets connection configuration. More... | |
(BOOL) | - setName:error: |
Sets the Friendly Name associated with this container. More... | |
(BOOL) | - setProperty:withValue:error: |
Overrides a container property. More... | |
(BOOL) | - updateDeviceInfo:withValue:withPassword:withParams:error: |
Updates container information. More... | |
Encapsulates an active service container instance.
- (BOOL) addKey: | (HIDKeySpec *) | keySpec | |
withProtectionPolicyId: | (HIDIdentifier *) | protectionPolicyId | |
withPassword: | (NSString *) | password | |
error: | (NSError **) | error | |
Adds a key to the container.
keySpec | the specification containing the key data (expect JWS formatted key). |
protectionPolicyId | the protection policy Id for that key. |
password | The password protecting that key. It can be set to nil if the protection policy does not require password to be set. |
error | error details. It may be nil. |
Possible error codes are:
- (NSArray*) findKeys: | (NSArray *) | filter | |
error: | (NSError **) | error | |
Retrieves a key handle from the secure keystore based on input parameter filter.
filter | NSArray of HIDParameter objects with key property name and value. (or nil for all keys) |
Parameter can b defined with the following id:
error | error details. It may be nil. |
Possible error codes are:
- (NSDate*) getCreationDate: | (NSError **) | error |
Gets the activation or renewal creation date for this container.
error | error details. It may be nil. |
Possible error codes are:
- (NSDate*) getExpiryDate: | (NSError **) | error |
Gets the server defined expiration date this container.
error | error details. It may be nil. |
Possible error codes are:
- (NSInteger) getId |
Get the identifier of this container.
- (NSString*) getName |
Gets the Friendly Name associated with this container.
- (NSDate*) getOriginalCreationDate: | (NSError **) | error |
Gets the first creation date of this container.
error | error details. It may be nil. |
Possible error codes are:
- (NSString*) getProperty: | (NSString *) | propertyId | |
error: | (NSError **) | error | |
Returns container property.
propertyId | property name. |
Supported property names:
error | error details. It may be nil. |
Possible error codes are:
- (id<HIDProtectionPolicy>) getProtectionPolicy: | (NSError **) | error |
Gets the protection policy associated with container.
error | error details. It may be nil. |
Possible error codes are:
- (NSDate*) getRenewalDate: | (NSError **) | error |
Gets the renewal date limit for this container to remain fully functional (support is limited or not working after this date).
error | error details. It may be nil. |
Possible error codes are:
- (NSString*) getServerURL |
Gets the server URL associated with this container.
- (NSString*) getUserId |
Gets the identifier of the user for this container.
- (BOOL) isFIPSModeEnabled |
Checks if FIPS 140-2 mode is required.
- (Boolean) isRenewable: | (NSString *) | sessionPassword | |
error: | (NSError **) | error | |
Verify whether the container renewal is possible.
sessionPassword | transaction protection key password (can be nil if not required by the policy) |
error | error details. It may be nil. |
Possible error codes are:
- (Boolean) renew: | (HIDContainerRenewal *) | config | |
withSessionPassword: | (NSString *) | sessionPassword | |
withListener: | (NSObject< HIDProgressListener > *) | listener | |
error: | (NSError **) | error | |
Triggers the container service key renewal process with the server for all container keys.
config | renewal configuration see HIDContainerRenewal for details |
sessionPassword | transaction protection key password (can be nil if not required by the policy) |
listener | A HIDProgressListener implementation to which to report status information or receive password request events. |
error | error details. It may be nil. |
Possible error codes are:
- (NSArray*) retrieveTransactionIds: | (NSString *) | sessionPassword | |
withParams: | (NSArray *) | parameters | |
error: | (NSError **) | error | |
Retrieve a list of pending transaction IDs from the container.
sessionPassword | transaction protection key password (can be nil if not required by the policy) |
parameters | empty (reserved for future use) |
error | error details. It may be nil. |
Possible error codes are:
- (BOOL) setConnectionConfiguration: | (HIDConnectionConfiguration *) | config | |
error: | (NSError **) | error | |
Sets connection configuration.
config | configuration, see HIDConnectionConfiguration for details. |
error | error details. It may be nil. |
Possible error codes are:
- (BOOL) setName: | (NSString *) | name | |
error: | (NSError **) | error | |
Sets the Friendly Name associated with this container.
name | Friendly name of container. (expected max 128 characters) |
error | error details. It may be nil. |
Possible error codes are:
- (BOOL) setProperty: | (NSString *) | propertyId | |
withValue: | (NSString *) | propertyValue | |
error: | (NSError **) | error | |
Overrides a container property.
propertyId | property name. |
Supported property names:
propertyValue | property value. |
error | error details. It may be nil. |
Possible error codes are:
- (BOOL) updateDeviceInfo: | (NSString *) | propertyId | |
withValue: | (NSString *) | propertyValue | |
withPassword: | (NSString *) | sessionPassword | |
withParams: | (NSArray *) | parameters | |
error: | (NSError **) | error | |
Updates container information.
This method is used by the application to notify of a change in one of the externally generated device attributes.
propertyId | deviceInfo property to update. |
Supported name attributes:
propertyValue | the new value to replace. |
sessionPassword | transaction protection key password (can be nil if not required by the policy) |
parameters | empty (reserved for future use) |
error | error details. It may be nil. |
Possible error codes are: