NetIQ Mobile SDK for iOS  2.0
Access Manager iOS Framework for OAuth & OIDC
MFSimpleKeychain(KeyPair) Category Reference

#import <MFSimpleKeychain+KeyPair.h>

Instance Methods

(BOOL) - generateRSAKeyPairWithLength:publicKeyTag:privateKeyTag:
 
(nullable NSData *) - dataForRSAKeyWithTag:
 
(BOOL) - deleteRSAKeyWithTag:
 
(SecKeyRef) - keyRefOfRSAKeyWithTag:
 
(BOOL) - hasRSAKeyWithTag:
 

Detailed Description

Category of MFSimpleKeychain to handle RSA pairs keys in the Keychain

Method Documentation

◆ dataForRSAKeyWithTag:()

- (NSData *) dataForRSAKeyWithTag: (NSString *)  keyTag

Returns a RSA key as NSData.

Parameters
keyTagtag of the key
Returns
the key as NSData or nil if not found

Extends class MFSimpleKeychain.

◆ deleteRSAKeyWithTag:()

- (BOOL) deleteRSAKeyWithTag: (NSString *)  keyTag

Removes a key using its tag.

Parameters
keyTagtag of the key to remove
Returns
if the key was removed successfuly.

Extends class MFSimpleKeychain.

◆ generateRSAKeyPairWithLength:publicKeyTag:privateKeyTag:()

- (BOOL) generateRSAKeyPairWithLength: (MFSimpleKeychainRSAKeySize)  keyLength
publicKeyTag: (NSString *)  publicKeyTag
privateKeyTag: (NSString *)  privateKeyTag 

Generates a RSA key pair with a specific length and tags. Each key is marked as permanent in the Keychain

Parameters
keyLengthnumber of bits of the keys.
publicKeyTagtag of the public key
privateKeyTagtag of the private key
Returns
if the key par is created it will return YES, otherwise NO.

Extends class MFSimpleKeychain.

◆ hasRSAKeyWithTag:()

- (BOOL) hasRSAKeyWithTag: (NSString *)  keyTag

Checks if a RSA key exists with a given tag.

Parameters
keyTagtag of RSA Key
Returns
if the key exists or not.

Extends class MFSimpleKeychain.

◆ keyRefOfRSAKeyWithTag:()

- (SecKeyRef) keyRefOfRSAKeyWithTag: (NSString *)  keyTag

Returns a RSA key as SecKeyRef. You must release it when you're done with it

Parameters
keyTagtag of the RSA Key
Returns
SecKeyRef of RSA Key

Extends class MFSimpleKeychain.


The documentation for this category was generated from the following files: