Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TRootSecContext.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/auth:$Id$
0002 // Author: G. Ganis   08/07/2005
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TRootSecContext
0013 #define ROOT_TRootSecContext
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TRootSecContext                                                      //
0019 //                                                                      //
0020 // Special implementation of TSecContext                                //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TAuthenticate.h"
0025 #include "TSecContext.h"
0026 
0027 class TRootSecContext : public TSecContext {
0028 
0029 private:
0030    Int_t        fRSAKey;              // Type of RSA key used
0031 
0032    Bool_t       CleanupSecContext(Bool_t all) override;
0033 
0034 public:
0035 
0036    TRootSecContext(const char *url, Int_t meth, Int_t offset,
0037                const char *id, const char *token,
0038                TDatime expdate = kROOTTZERO, void *ctx = nullptr, Int_t key = 1);
0039    TRootSecContext(const char *user, const char *host, Int_t meth, Int_t offset,
0040                const char *id, const char *token,
0041                TDatime expdate = kROOTTZERO, void *ctx = nullptr, Int_t key = 1);
0042    virtual    ~TRootSecContext();
0043 
0044    const char *AsString(TString &out) override;
0045 
0046    void        DeActivate(Option_t *opt = "CR") override;
0047    Int_t       GetRSAKey()  const { return fRSAKey; }
0048 
0049    void        Print(Option_t *option = "F") const override;
0050 
0051    ClassDefOverride(TRootSecContext,0)  // Class providing host specific authentication information
0052 };
0053 
0054 #endif