- Inherits From:
- GPGKey : GPGObject : NSObject
- Declared In:
- GPGME/GPGSubkey.h
GPGSubkey instances do not support all methods from GPGKey; use only the listed ones, else a NSInternalInconsistencyException exception will be raised.
The following convenience methods, though not listed, are supported: -algorithmDescription, -shortKeyID, -formattedFingerprint
Synopsis:
GPGSUBKEY_H
GPGKey *_key;
int _refCount;
_key Key owning the subkey; not retained _refCount No description.
Global subkey capabilities
- - key
- - isKeyRevoked
- - isKeyInvalid
- - hasKeyExpired
- - isKeyDisabled
- - isSecret
- - algorithm
- - length
- - keyID
- - fingerprint
- - creationDate
- - expirationDate
- - canEncrypt
- - canSign
- - canCertify
- - canAuthenticate
- (GPGPublicKeyAlgorithm)algorithm
Returns subkey algorithm. The algorithm is the crypto algorithm for which the subkey can be used. The value corresponds to the GPGPublicKeyAlgorithm enum values.
- (BOOL)canAuthenticate
Returns whether the subkey can be used for authentication.
- (BOOL)canCertify
Returns whether the subkey can be used to create key certificates.
- (BOOL)canEncrypt
Returns whether the subkey can be used for encryption.
- (BOOL)canSign
Returns whether the subkey can be used to create data signatures.
- (NSCalendarDate *)creationDate
Returns subkey creation date. Returns nil when not available or invalid.
- (NSCalendarDate *)expirationDate
Returns subkey expiration date. Returns nil when there is none or is not available or is invalid.
- (NSString *)fingerprint
Returns subkey fingerprint in hexadecimal digits, if available. This is usually only available for the primary key.
- (BOOL)hasKeyExpired
Returns whether subkey is expired.
- (BOOL)isKeyDisabled
Returns whether subkey is disabled.
- (BOOL)isKeyInvalid
Returns whether subkey is invalid.
- (BOOL)isKeyRevoked
Returns whether subkey is revoked.
- (BOOL)isSecret
Returns whether the subkey is secret.
- (GPGKey *)key
Returns parent key.
- (NSString *)keyID
Returns subkey key ID in hexadecimal digits.
- (unsigned int)length
Returns subkey length, in bits.