HID APPROVE SDK  6.0
HID Approve SDK for iOS/macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
<HIDKeyPair> Protocol Reference
Inheritance diagram for <HIDKeyPair>:
<HIDKey>

Instance Methods

(NSData *) - getPrivateKeyEncoded:
 Gets the private key in its primary encoding format. More...
 
(NSData *) - getPrivateKeyEncoded:error:
 Gets the private key in its primary encoding format. More...
 
- Instance Methods inherited from <HIDKey>
(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...
 

Method Documentation

- (NSData*) getPrivateKeyEncoded: (NSError **)  error

Gets the private 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*) getPrivateKeyEncoded: (NSString *)  password
error: (NSError **)  error 

Gets the private 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.