OpenAFS
OpenAFS distributed network file system
|
00001 // 00002 // AuthUtil.h 00003 // AFSCommander 00004 // 00005 // Created by Claudio Bisegni on 21/06/07. 00006 // Copyright 2007 INFN - National Institute of Nuclear Physics. All rights reserved. 00007 // 00008 00009 #import <Cocoa/Cocoa.h> 00010 #include <Security/Authorization.h> 00011 #include <Security/AuthorizationTags.h> 00012 00013 @interface AuthUtil : NSObject { 00014 AuthorizationRef authorizationRef; 00015 } 00016 -(id) init; 00017 -(OSStatus) autorize; 00018 -(BOOL) deautorize; 00019 -(AuthorizationRef) authorization; 00020 -(NSData*) extFormAuth; 00021 -(OSStatus) execUnixCommand:(const char*) commandPath args:(const char*[])args output:(NSMutableString*)output; 00022 +(AuthUtil*) shared; 00023 + (id)allocWithZone:(NSZone *)zone; 00024 - (id)copyWithZone:(NSZone *)zone; 00025 - (id)retain; 00026 - (unsigned)retainCount; 00027 - (void)release; 00028 - (id)autorelease; 00029 @end