• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

XrdCmsSecurity.hh

Go to the documentation of this file.
00001 #ifndef _CMS_SECURITY_H
00002 #define _CMS_SECURITY_H
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                     X r d C m s S e c u r i t y . h h                      */
00006 /*                                                                            */
00007 /* (c) 2007 by the Board of Trustees of the Leland Stanford, Jr., University  */
00008 /*                            All Rights Reserved                             */
00009 /*   Produced by Andrew Hanushevsky for Stanford University under contract    */
00010 /*              DE-AC02-76-SFO0515 with the Department of Energy              */
00011 /******************************************************************************/
00012 
00013 //          $Id: XrdCmsSecurity.hh,v 1.1 2007/12/10 04:11:13 abh Exp $
00014 
00015 
00016 #include <sys/types.h>
00017 #include <sys/socket.h>
00018 
00019 #include "XrdSec/XrdSecInterface.hh"
00020 
00021 class XrdLink;
00022 
00023 class XrdCmsSecurity
00024 {
00025 public:
00026 
00027 static int             Authenticate(XrdLink *Link, const char *Token, int tlen);
00028 
00029 static int             Configure(const char *Lib, const char *Cfn=0);
00030 
00031 static const char     *getToken(int &size, const char *hostname);
00032 
00033 static int             Identify(XrdLink *Link, XrdCms::CmsRRHdr &inHdr,
00034                                 char *authBuff, int abLen);
00035 
00036       XrdCmsSecurity() {}
00037      ~XrdCmsSecurity() {}
00038 
00039 private:
00040 static XrdSecService *DHS;
00041 };
00042 #endif

Generated on Wed Sep 1 2010 for xrootd by  doxygen 1.7.1