Class

TKTokenKeychainKey

A token's key as stored in the keychain.

Declaration

@interface TKTokenKeychainKey : TKTokenKeychainItem

Topics

Creating Token Keychain Keys

- initWithCertificate:objectID:

Initializes a token keychain key with data from the specified certificate reference and a given object ID.

Accessing Key Attributes

keyType

The type of the key. Currently, only kSecAttrKeyTypeRSA and kSecAttrKeyTypeECSECPrimeRandom are supported values.

applicationTag

The private tag data.

publicKeyData

The public key data.

publicKeyHash

The SHA1 hash of the raw public key.

canDecrypt

Whether the key can be used to decrypt data.

canSign

Whether the key can be used to sign data.

canPerformKeyExchange

Whether the key can be used to perform Diffie-Hellman style cryptographic key exchange.

suitableForLogin

Whether the key can be used for system login.

Relationships

Inherits From

See Also

Accessing Keychain Items

keychainContents

The contents of the keychain for this token.

TKTokenKeychainContents

A representation of the state of the keychain for a particular token.

TKTokenKeychainItem

An abstract base class for managing a token’s contents as keychain items.

TKTokenKeychainCertificate

A token’s certificate as stored in the keychain.

TKTokenObjectID

A unique and persistent identifier of a particular token object.