Repository URL to install this package:
Version:
1.0.4 ▾
|
com.vipera.de.foundation.connector
/
src
/
ios
/
DEMotifConnector.framework
/
Headers
/
DECertificatePinningConfiguration.h
|
---|
//
// DECertificatePinningConfiguration.h
// DynamicEngine
//
// Created by Mobile3D on 19/02/16.
// Copyright © 2016 Vipera. All rights reserved.
//
#ifndef DECertificatePinningConfiguration_h
#define DECertificatePinningConfiguration_h
#import <Foundation/Foundation.h>
@class NSString;
@protocol DECertificatePinningConfiguration <NSObject>
/**
* When pinning is enabled, if this method returns YES, when making a server request the certificate data will be logged.
* This is useful for the first configuration off the pinning system. The logged data can be used to pupulate the other fields of the configuration.
*
*
* @return YES to log the certificate data.
*/
- (BOOL) logCertificateData;
/**
* The subject info that the certificate must contain to be considered valid.
*
* @return A string describing the subject or nil to skip this check.
*/
- (NSString *) subject;
/**
* The issuer info that the certificate must contain to be considered valid.
*
* @return A string describing the subject or nil to skip this check.
*/
- (NSString *) issuer;
/**
* The public key info that the certificate must contain to be considered valid.
*
* @return A string describing the public key, nil to skip this check.
*/
- (NSString *) publicKey;
/**
* The serial number info that the certificate must contain to be considered valid.
*
* @return A string describing the serial number or nil to skip this check.
*/
- (NSString *) serialNumber;
@end
#endif /* DECertificatePinningConfiguration_h */