- Inherits From:
- GPGObject : NSObject
- Conforms To:
- NSCopying
- Declared In:
- GPGME/GPGUserID.h
A user ID represents an identity associated with a key. This identity is generally composed of a name and an email adress, and can have a comment associated.
The signatures on a key (in fact a user ID) are only available if the key was retrieved via a listing operation with the GPGKeyListModeSignatures mode enabled, because it is expensive to retrieve all signatures of a key.
Synopsis:
GPGUSERID_H
GPGKey *_key;
NSArray *_signatures;
int _refCount;
_key Key owning the user ID; not retained _signatures Signatures on the user ID _refCount No description.
Attributes
- - description
- - userID
- - key
Convenience methods
- - name
- - comment
- - validity
- - hasBeenRevoked
- - isInvalid
Signatures
- - validityDescription
- - signatures
- (NSString *)comment
Returns the user ID comment, if available.
- (NSString *)description
Returns the user ID as "Name (Comment) <Email>".
- (NSString *)email
Returns the user ID email address, if available.
- (BOOL)hasBeenRevoked
Returns whether the user ID has been revoked or not.
- (BOOL)isInvalid
Returns whether the user ID is invalid or not.
- (GPGKey *)key
Returns the key owning that userID.
- (NSString *)name
Returns the user ID name, if available.
- (NSArray *)signatures
Returns the signatures on the user ID, if they have been fetched. Array contains GPGKeySignature instances.
Returns nil if signatures have not been fetched.
- (NSString *)userID
Returns the user ID as "Name (Comment) <Email>".
- (GPGValidity)validity
Returns the user ID validity.
Note that for secret keys, validity is currently meaningless and always set to GPGValidityUnknown. This will be fixed with gpg >= 1.9.
- (NSString *)validityDescription
Returns a localized string describing the user ID validity.