BUPinningSPKIData Class Reference
Inherits from | NSObject |
---|---|
Declared in | BUPinningSPKIData.h |
Overview
Information about the SPKI data for pinning
Some providers use a Hex format while others use a Base64 encoded string. An initialization method exists for both
– initWithHexString:algorithms:
Create the SPKI pin data from a Hex string
- (instancetype _Nonnull)initWithHexString:(NSString *_Nonnull)pin algorithms:(BUPublicKeyAlgorithm)pubKeyAlg
Parameters
pin |
The pin in Hex format |
---|---|
pubKeyAlg |
An array of BUPublicKeyAlgorithm values |
Return Value
The SPKI pin data
Declared In
BUPinningSPKIData.h
– initWithBase64:algorithms:
Create the SPKI pin data from a Base64 string
- (instancetype _Nonnull)initWithBase64:(NSString *_Nonnull)pin algorithms:(BUPublicKeyAlgorithm)pubKeyAlg
Parameters
pin |
The pin in Base64 format |
---|---|
pubKeyAlg |
An array of BUPublicKeyAlgorithm values |
Return Value
The SPKI pin data
Declared In
BUPinningSPKIData.h
pin
The pin in either Base64 or Hex string format
@property (nonnull, nonatomic, strong) NSString *pin
Declared In
BUPinningSPKIData.h
isBase64
Bool indicating if the pin is in Base64 format
@property (assign) BOOL isBase64
Declared In
BUPinningSPKIData.h
isHexString
Bool indicating if the pin is in Hex format
@property (assign) BOOL isHexString
Declared In
BUPinningSPKIData.h
supportedAlgorithms
The supported Public Key Algorithm(s) for the certificate
@property (assign) BUPublicKeyAlgorithm supportedAlgorithms
Declared In
BUPinningSPKIData.h