home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / NIInterface.framework / Versions / A / Headers / NIAuthenticationPanel.h next >
Text File  |  1996-03-20  |  955b  |  55 lines

  1. /*
  2.     NIAuthenticationPanel.h
  3.     NetInfo Kit
  4.     Copyright (c) 1994, NeXT Computer, Inc.
  5.     All rights reserved.
  6.  */
  7.  
  8. #import <Foundation/NSString.h>
  9. #import <NIAccess/NIDomain.h>
  10. #import <AppKit/NSPanel.h>
  11.  
  12. @interface NIAuthenticationPanel : NSPanel
  13. {
  14.     NSString *userName;
  15.     NSString *password;
  16.     BOOL authenticated;
  17.     id iconButton;
  18.     id userNameText;
  19.     id passwordText;
  20.     id instructionText;
  21.     id cancelButton;
  22.     id authButton;
  23.     id reserved;
  24. }
  25.  
  26. /* 
  27.  * Class Methods
  28.  */
  29. + (NIAuthenticationPanel *)authenticationPanel;
  30.  
  31. /* 
  32.  * Root authentication 
  33.  */
  34. - (BOOL)runModalForDomain:(NIDomain *)domain;
  35.  
  36. /* 
  37.  * Authentication for specified user in specified domain
  38.  */
  39. - (BOOL)runModalForDomain:(NIDomain *)domain
  40.     userName:(NSString *)name
  41.     instructions:(NSString *)instructions
  42.     allowChange:(BOOL)canChangeUser;
  43.  
  44. /*
  45.  * Determine authenticated user (if [... allowChange:YES])
  46.  */
  47. - (NSString *)userName;
  48.  
  49. /*
  50.  * Get password entered by user
  51.  */
  52. - (NSString *)password;
  53.  
  54. @end
  55.