ASConnectPrivateKey
@interface ASConnectPrivateKey
Provides easy access to the private key used for transfers against servers configured with the default key used by Aspera Connect
-
The path to the key file. This property will be nil until the key has been written to disk
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSString *path
-
The passphrase of the key.
Declaration
Objective-C
@property (nonatomic, strong, nonnull, readonly) NSString *passphrase
-
Returns the shared instance of this key
Declaration
Objective-C
+ (nonnull instancetype)sharedKey;
Swift
class func sharedKey() -> Self
-
Writes the key to disk at the given path, returning YES on success and NO on failure. If the error parameters is non-nil and the write fails it will be populated with an error describing the failure. After this methods executes successfully it sets the path attribute to the path value passed to this method
Declaration
Objective-C
- (id)writeToDisk:(id)path error:(id)error;
Swift
func writeToDisk(path: AnyObject!, error: AnyObject!) -> AnyObject!