PTX509Extension
@interface PTX509Extension : NSObject
This class represents an X509v3 certificate extension. See RFC 5280 as a specification.
-
Retrieves whether the extension is ‘critical’. See RFC 5280 for an explanation of what this means.
Declaration
Objective-C
- (BOOL)IsCritical;Swift
func isCritical() -> BoolReturn Value
a boolean representing the criticality flag of the extension.
-
Retrieves the OID (object identifier) of the extension in the form of integer components in a container. The meaning of an OID can be determined from an OID repository.
Declaration
Objective-C
- (PTObjectIdentifier *)GetObjectIdentifier;Swift
func getObjectIdentifier() -> PTObjectIdentifier!Return Value
an ObjectIdentifier object.
-
Returns a string representation of the extension.
Note
Output may change in future versions.
Declaration
Objective-C
- (NSString *)ToString;Swift
func toString() -> String!Return Value
a string representation of the extension.
-
Retrieves the raw binary DER-encoded data of the extension. (DER is short for Distinguished Encoding Rules.)
Declaration
Objective-C
- (NSData *)GetData;Swift
func getData() -> Data!Return Value
a container holding the bytes of the extension in the form of binary DER-encoded data
-
Undocumented
Declaration
Objective-C
- (instancetype)init;Swift
init!()
PTX509Extension Class Reference