-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
TPAuthenticationManager.h
38 lines (29 loc) · 1.04 KB
/
TPAuthenticationManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// TPAuthenticationManager.h
// teleport
//
// Created by JuL on Thu Mar 04 2004.
// Copyright (c) 2003-2005 abyssoft. All rights reserved.
//
#import "TPAuthenticationRequest.h"
@class TPRemoteHost, TPNetworkConnection;
@interface TPAuthenticationManager : NSObject
{
NSMutableArray * _trustedHosts;
TPNetworkConnection * _currentConnection;
}
+ (TPAuthenticationManager*)defaultManager;
/* Persistence */
- (void)loadHosts;
- (void)saveHosts;
/* Authentication requests - client side */
- (void)requestAuthenticationOnHost:(TPRemoteHost*)host;
- (void)abortAuthenticationRequest;
/* Authentication answer - server side */
- (void)authenticationRequestedFromHost:(TPRemoteHost*)host onConnection:(TPNetworkConnection*)connection;
- (void)replyToAuthenticationRequest:(TPAuthenticationRequest*)authRequest withResult:(TPAuthenticationResult)result;
/* Trusted hosts */
@property (nonatomic, readonly, copy) NSArray *trustedHosts;
- (void)host:(TPRemoteHost*)remoteHost setTrusted:(BOOL)trusted;
- (BOOL)isHostTrusted:(TPRemoteHost*)remoteHost;
@end