HID APPROVE SDK  5.12
HID Approve SDK for iOS/macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
<HIDKey> Protocol Reference

Key instance. More...

#import <HIDKey.h>

Instance Methods

(NSString *) - getAlgorithm:
 Gets the standard algorithm name for the key. More...
 
(id< HIDOTPGenerator >) - getDefaultOTPGenerator:
 Returns the default OTP generator associated with the key. More...
 
(NSData *) - getEncoded:
 Gets the key in its primary encoding format. More...
 
(NSData *) - getEncoded:error:
 Gets the key in its primary encoding format. More...
 
(NSString *) - getFormat:
 Gets the name of the primary encoding format of this key. More...
 
(HIDIdentifier *) - getId
 Gets the keyId associated with key. More...
 
(NSString *) - getProperty:error:
 Returns property for that key. More...
 
(id< HIDProtectionPolicy >) - getProtectionPolicy:
 Gets the protection policy associated with key. More...
 
(BOOL) - isExtractable:
 Returns true when the key is extractable. More...
 

Detailed Description

Key instance.

Method Documentation

- (NSString*) getAlgorithm: (NSError **)  error

Gets the standard algorithm name for the key.

Parameters
errorerror details. It may be nil.
Returns
The algorithm name.
- (id<HIDOTPGenerator>) getDefaultOTPGenerator: (NSError **)  error

Returns the default OTP generator associated with the key.

Parameters
errorerror details. It may be nil.
Returns
The HIDOTPGenerator instance, nil if key is not supporting any OTP generators or an error occurs.
- (NSData*) getEncoded: (NSError **)  error

Gets the key in its primary encoding format.

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
the key in its primary encoding format, or nil if an error occurred
- (NSData*) getEncoded: (NSString *)  password
error: (NSError **)  error 

Gets the key in its primary encoding format.

Parameters
passwordthe key password.
errorerror details. It may be nil.

Possible error codes are:

Returns
The key in its primary encoding format, or nil if an error occurred.
- (NSString*) getFormat: (NSError **)  error

Gets the name of the primary encoding format of this key.

Parameters
errorerror details. It may be nil.
Returns
The encoding format name.
- (HIDIdentifier*) getId

Gets the keyId associated with key.

Returns
the keyId, nil if not set.
- (NSString*) getProperty: (NSString *)  propertyId
error: (NSError **)  error 

Returns property for that key.

Parameters
propertyIdkey property name.

The property name may be any of the following:

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
The key property value, nil if an error occurs.
- (id<HIDProtectionPolicy>) getProtectionPolicy: (NSError **)  error

Gets the protection policy associated with key.

Parameters
errorerror details. It may be nil.

Possible error codes are:

Returns
The HIDProtectionPolicy used to protect the key, nil if an error occurs.
- (BOOL) isExtractable: (NSError **)  error

Returns true when the key is extractable.

Parameters
errorerror details. It may be nil.
Returns
true or false depending on whether the key is extractable or not.