Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / platform / DARWIN / AFSPreference / AuthUtil.h
1 //
2 // AuthUtil.h
3 // AFSCommander
4 //
5 // Created by Claudio Bisegni on 21/06/07.
6 // Copyright 2007 INFN - National Institute of Nuclear Physics. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 #include <Security/Authorization.h>
11 #include <Security/AuthorizationTags.h>
12
13 @interface AuthUtil : NSObject {
14 AuthorizationRef authorizationRef;
15 }
16 -(id) init;
17 -(OSStatus) autorize;
18 -(BOOL) deautorize;
19 -(AuthorizationRef) authorization;
20 -(NSData*) extFormAuth;
21 -(OSStatus) execUnixCommand:(const char*) commandPath args:(const char*[])args output:(NSMutableString*)output;
22 +(AuthUtil*) shared;
23 + (id)allocWithZone:(NSZone *)zone;
24 - (id)copyWithZone:(NSZone *)zone;
25 - (id)retain;
26 - (unsigned)retainCount;
27 - (void)release;
28 - (id)autorelease;
29 @end