HID APPROVE SDK  5.5
HID APPROVE SDK for iOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
HIDKey.h
Go to the documentation of this file.
1 /* ---------------------------------------------------------------------------
2  © 2017-2020 HID Global Corporation/ASSA ABLOY AB. All rights reserved.
3 
4  Redistribution and use in source and binary forms, with or without modification,
5  are permitted provided that the following conditions are met:
6  - Redistributions of source code must retain the above copyright notice,
7  this list of conditions and the following disclaimer.
8  - Redistributions in binary form must reproduce the above copyright notice,
9  this list of conditions and the following disclaimer in the documentation
10  and/or other materials provided with the distribution.
11  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
12  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
13  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
14  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
15  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
16  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
17  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
19  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
20  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21  --------------------------------------------------------------------------- */
22 #import <Foundation/Foundation.h>
23 #import "HIDIdentifier.h"
24 #import "HIDProtectionPolicy.h"
25 #import "HIDOTPGenerator.h"
26 
36 @protocol HIDKey
53 - (id<HIDProtectionPolicy>)getProtectionPolicy:(NSError**)error;
75 - (NSString*)getProperty:(NSString*)propertyId error:(NSError**)error;
81 - (id<HIDOTPGenerator>)getDefaultOTPGenerator:(NSError**)error;
93 - (NSArray*)getSupportedOTPGenerators:(NSError**)error;
106 - (id<HIDOTPGenerator>)getOTPGenerator:(NSString*)name error:(NSError**)error;
112 - (BOOL)isExtractable:(NSError**)error;
118 - (NSString*)getAlgorithm:(NSError**)error;
124 - (NSString*)getFormat:(NSError**)error;
137 - (NSData*)getEncoded:(NSError**)error;
151 - (NSData*)getEncoded:(NSString*)password error:(NSError**)error;
152 @end
The protection policy defines the security parameters associated with a key or data item...
Definition: HIDProtectionPolicy.h:129
HIDIdentifier * getId()
Gets the keyId associated with key.
A base protocol for OTP generators.
Definition: HIDOTPGenerator.h:51
OTP Generator Base.
Security policy for the protection of sensitive data.
object identifier.
Definition: HIDIdentifier.h:34
Object reference.
Key instance.
Definition: HIDKey.h:36