-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
593 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_i386_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>CertificateSDK.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>i386</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_armv7</string> | ||
<key>LibraryPath</key> | ||
<string>CertificateSDK.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>armv7</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+1.48 MB
CertificateSDK.xcframework/ios-arm64_armv7/CertificateSDK.framework/CertificateSDK
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file renamed
BIN
+715 Bytes
CertificateSDK.framework/Info.plist → ...armv7/CertificateSDK.framework/Info.plist
Binary file not shown.
File renamed without changes.
Binary file added
BIN
+1.07 MB
...teSDK.xcframework/ios-arm64_i386_x86_64-simulator/CertificateSDK.framework/CertificateSDK
Binary file not shown.
68 changes: 68 additions & 0 deletions
68
...ios-arm64_i386_x86_64-simulator/CertificateSDK.framework/Headers/CertificateRequestBase.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
CertificateRequestBase.h | ||
https://github.com/jamf/CertificateSDK | ||
MIT License | ||
Copyright (c) 2019 Jamf Open Source Community | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
*/ | ||
|
||
#ifndef CertificateRequestBase_h | ||
#define CertificateRequestBase_h | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <CertificateSDK/CertificateRequestDelegate.h> | ||
#import <CertificateSDK/CertificateRequestProtocol.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
This class is the base class for all CertificateRequestProtocol objects. | ||
Subclasses will have a concrete implementation of requesting certificates. | ||
*/ | ||
NS_CLASS_AVAILABLE_IOS(10_0) | ||
@interface CertificateRequestBase : NSObject <CertificateRequestProtocol> | ||
|
||
/** | ||
The object that will be called back with progress, errors, and completion. | ||
*/ | ||
@property (weak, readonly) id<CertificateRequestDelegate> delegate; | ||
|
||
/** | ||
This is the maximum number of steps in the progress of a certificate request. | ||
May be approximate until the actual call of -startNewCertificateRequest | ||
*/ | ||
@property (assign, readonly) NSUInteger maxNumberOfSteps; | ||
|
||
/** | ||
Create an object. | ||
@param delegate Your delegate that will be called as the certificate request workflow proceeds | ||
@return An initialized object; may be nil if memory is full | ||
*/ | ||
- (nullable instancetype)initWithDelegate:(id<CertificateRequestDelegate>)delegate NS_DESIGNATED_INITIALIZER; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
||
#endif /* CertificateRequestBase_h */ |
97 changes: 97 additions & 0 deletions
97
...arm64_i386_x86_64-simulator/CertificateSDK.framework/Headers/CertificateRequestDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* | ||
CertificateRequestDelegate.h | ||
https://github.com/jamf/CertificateSDK | ||
MIT License | ||
Copyright (c) 2019 Jamf Open Source Community | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
*/ | ||
|
||
#ifndef CertificateRequestDelegate_h | ||
#define CertificateRequestDelegate_h | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@protocol CertificateRequestProtocol; | ||
|
||
/** | ||
Third party apps should have a class that implements these methods for notification on progress, errors, and completion. | ||
*/ | ||
@protocol CertificateRequestDelegate <NSObject> | ||
|
||
@required | ||
/** | ||
When any kind of error occurs in the process for requesting certificates, this delegate method will be called. | ||
@param request The object that initiated the request | ||
@param error An error object | ||
*/ | ||
- (void)certificateRequest:(id<CertificateRequestProtocol>)request errorOccurred:(NSError *)error NS_SWIFT_NAME(certificate(request:error:)); | ||
|
||
@required | ||
/** | ||
When the request to Jamf Pro is completed, this method will be called. If there were errors, the identity will be nil. | ||
@param request The object that started the request. | ||
@param identity An identity that encapsulates the info from the server. | ||
*/ | ||
- (void)certificateRequest:(id<CertificateRequestProtocol>)request completedWithIdentity:(nullable SecIdentityRef)identity | ||
NS_SWIFT_NAME(certificate(request:completedWith:)); | ||
|
||
@optional | ||
/** | ||
As the steps are completed during the request to Jamf Pro, this method can be called. The current progress can be checked | ||
against the request.maxNumberOfSteps to show progress percentage. | ||
NOTE: Each step may take a different (unknown) amount of time as the actual request will be using network resources. | ||
@param request The object that started the request. | ||
@param current The current progress | ||
*/ | ||
- (void)certificateRequest:(id<CertificateRequestProtocol>)request progress:(NSUInteger)current; | ||
|
||
@optional | ||
/** | ||
When the CertificateRequest SDK begins accessing the network and when it ends accessing the network, this method | ||
is called if implemented. | ||
@param request The object that started the request. | ||
@param isUsingNetwork Whether or not the request is currently using the network. | ||
*/ | ||
- (void)certificateRequest:(id<CertificateRequestProtocol>)request isUsingNetwork:(BOOL)isUsingNetwork; | ||
|
||
|
||
@optional | ||
/** | ||
When the CertificateRequest SDK detects no settings in the Managed App Config key, or if the invitation in the | ||
Managed App Config has expired this will be called to let you know that it is waiting for a new MAC to be delivered | ||
from the Jamf Pro server. Will be called again when the MAC comes in; the timing on this can vary greatly. | ||
@param request The object that started the request. | ||
@param waitingForMAC Whether or not the request is currently waiting for settings in the Managed App Config. | ||
*/ | ||
- (void)certificateRequest:(id<CertificateRequestProtocol>)request isWaitingForMAC:(BOOL)waitingForMAC; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END | ||
|
||
#endif /* CertificateRequestDelegate_h */ |
Oops, something went wrong.