HID APPROVE SDK  6.0
HID Approve SDK for iOS/macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
HIDContainer.h
Go to the documentation of this file.
1 /* ---------------------------------------------------------------------------
2  (c) 2015-2025, HID Global Corporation, part of ASSA ABLOY.
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without modification,
6  are permitted provided that the following conditions are met:
7  - Redistributions of source code must retain the above copyright notice,
8  this list of conditions and the following disclaimer.
9  - Redistributions in binary form must reproduce the above copyright notice,
10  this list of conditions and the following disclaimer in the documentation
11  and/or other materials provided with the distribution.
12 
13  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
17  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 --------------------------------------------------------------------------- */
24 
25 #import <Foundation/Foundation.h>
26 #import "HIDIdentifier.h"
27 #import "HIDProtectionPolicy.h"
29 #import "HIDKeySpec.h"
30 #import "HIDKey.h"
32 #import "HIDProgressListener.h"
33 #import "HIDTransaction.h"
34 
44 @protocol HIDContainer
45 
50 - (NSInteger)getId;
51 
56 - (NSString*)getServerURL;
57 
62 - (NSString*)getName;
63 
77 - (BOOL)setName:(NSString*)name error:(NSError**)error;
78 
83 - (NSString*)getUserId;
84 
108 - (NSArray*)findKeys:(NSArray*)filter error:(NSError**)error;
109 
138 - (NSString*)getProperty:(NSString*)propertyId error:(NSError**)error;
139 
162 - (BOOL)setProperty:(NSString*)propertyId withValue:(NSString*)propertyValue error:(NSError**)error;
163 
176 - (id<HIDProtectionPolicy>)getProtectionPolicy:(NSError**)error;
177 
197 - (NSArray*)retrieveTransactionIds:(NSString*)sessionPassword withParams:(NSArray*)parameters error:(NSError**)error;
198 
212 - (BOOL)setConnectionConfiguration:(HIDConnectionConfiguration*)config error:(NSError**)error;
213 
229 - (BOOL)addKey:(HIDKeySpec*)keySpec withProtectionPolicyId:(HIDIdentifier*)protectionPolicyId withPassword:(NSString*)password error:(NSError**)error;
230 
235 - (BOOL)isFIPSModeEnabled;
236 
248 -(NSDate*)getOriginalCreationDate:(NSError**)error;
249 
261 -(NSDate*)getCreationDate:(NSError**)error;
262 
274 -(NSDate*)getExpiryDate:(NSError**)error;
275 
287 -(NSDate*)getRenewalDate:(NSError**)error;
288 
301 -(Boolean)isRenewable:(NSString*)sessionPassword error:(NSError**)error;;
302 
325 - (Boolean)renew:(HIDContainerRenewal*)config withSessionPassword:(NSString*) sessionPassword withListener:(NSObject<HIDProgressListener>*)listener error:(NSError**)error;
326 
356 - (BOOL)updateDeviceInfo:(NSString*)propertyId withValue:(NSString*)propertyValue withPassword:(NSString*)sessionPassword withParams:(NSArray*)parameters error:(NSError**)error;
357 
373 - (id<HIDTransaction>) generateAuthenticationRequest:(NSString*)message withKey:(HIDIdentifier*) key error:(NSError**)error;
374 
375 @end
Key instance.
NSInteger getId()
Get the identifier of this container.
NSString * getServerURL()
Gets the server URL associated with this container.
The protection policy defines the security parameters associated with a key or data item...
Definition: HIDProtectionPolicy.h:131
Listener delegate to report status information or receive password request events.
NSString * getUserId()
Gets the identifier of the user for this container.
This interface provides an integration point for receiving status information sent from the server du...
Definition: HIDProgressListener.h:144
Encapsulates an active service container instance.
Definition: HIDContainer.h:44
Security policy for the protection of sensitive data.
Key Spec object for use with addKey:withProtectionPolicyId:withPassword:error: (HIDContainer-p) ...
Definition: HIDKeySpec.h:36
Configuration for creation if a new HIDContainer.
Transaction object.
Encapsulates a transaction and exposes an API to apply an action status and context.
Definition: HIDTransaction.h:46
object identifier.
Definition: HIDIdentifier.h:36
Key Spec instance.
Configuration for renew of a Container.
Definition: HIDContainerInitialization.h:92
Connection configuration.
Configuration of server connections.
Definition: HIDConnectionConfiguration.h:44
BOOL isFIPSModeEnabled()
Checks if FIPS 140-2 mode is required.
Object reference.
NSString * getName()
Gets the Friendly Name associated with this container.