@@ -37,10 +37,10 @@ const TDatime kROOTTZERO = 788914800;
3737// //////////////////////////////////////////////////////////////////////////////
3838// / Ctor for SecContext object.
3939
40- TSecContext::TSecContext (const char *user, const char *host, Int_t meth,
41- Int_t offset, const char *id,
42- const char *token, TDatime expdate, void *ctx)
43- : TObject()
40+ ROOT::Deprecated:: TSecContext::TSecContext (const char *user, const char *host, Int_t meth,
41+ Int_t offset, const char *id,
42+ const char *token, TDatime expdate, void *ctx)
43+ : TObject()
4444{
4545 R__ASSERT (gROOT );
4646
@@ -73,10 +73,10 @@ TSecContext::TSecContext(const char *user, const char *host, Int_t meth,
7373// / Ctor for SecContext object.
7474// / User and host from url = `user@host` .
7575
76- TSecContext::TSecContext (const char *url, Int_t meth, Int_t offset,
77- const char *token, const char *id,
78- TDatime expdate, void *ctx)
79- : TObject()
76+ ROOT::Deprecated:: TSecContext::TSecContext (const char *url, Int_t meth, Int_t offset,
77+ const char *token, const char *id,
78+ TDatime expdate, void *ctx)
79+ : TObject()
8080{
8181 R__ASSERT (gROOT );
8282
@@ -108,7 +108,7 @@ TSecContext::TSecContext(const char *url, Int_t meth, Int_t offset,
108108// //////////////////////////////////////////////////////////////////////////////
109109// /copy constructor
110110
111- TSecContext::TSecContext (const TSecContext& sc) :
111+ ROOT::Deprecated:: TSecContext::TSecContext (const TSecContext& sc) :
112112 TObject(sc),
113113 fContext(sc.fContext ),
114114 fCleanup(sc.fCleanup ),
@@ -126,7 +126,7 @@ TSecContext::TSecContext(const TSecContext& sc) :
126126// //////////////////////////////////////////////////////////////////////////////
127127// /assignement operator
128128
129- TSecContext& TSecContext::operator =(const TSecContext& sc)
129+ ROOT::Deprecated:: TSecContext& TSecContext::operator =(const TSecContext& sc)
130130{
131131 if (this !=&sc) {
132132 TObject::operator =(sc);
@@ -148,14 +148,14 @@ TSecContext& TSecContext::operator=(const TSecContext& sc)
148148// / Dtor: delete (deActivate, local/remote cleanup, list removal)
149149// / all what is still active
150150
151- TSecContext::~TSecContext ()
151+ ROOT::Deprecated:: TSecContext::~TSecContext ()
152152{
153153 Cleanup ();
154154}
155155// //////////////////////////////////////////////////////////////////////////////
156156// / Cleanup what is still active
157157
158- void TSecContext::Cleanup ()
158+ void ROOT::Deprecated:: TSecContext::Cleanup ()
159159{
160160 if (IsActive ()) {
161161 CleanupSecContext (kTRUE );
@@ -187,7 +187,7 @@ void TSecContext::Cleanup()
187187// / If Opt contains "R" or "r", remove from the list
188188// / Default Opt="CR"
189189
190- void TSecContext::DeActivate (Option_t *Opt)
190+ void ROOT::Deprecated:: TSecContext::DeActivate (Option_t *Opt)
191191{
192192 // Ask remote cleanup of this context
193193 Bool_t clean = (strstr (Opt," C" ) || strstr (Opt," c" ));
@@ -210,7 +210,7 @@ void TSecContext::DeActivate(Option_t *Opt)
210210// / Create a new TSecContextCleanup
211211// / Internally is added to the list
212212
213- void TSecContext::AddForCleanup (Int_t port, Int_t proto, Int_t type)
213+ void ROOT::Deprecated:: TSecContext::AddForCleanup (Int_t port, Int_t proto, Int_t type)
214214{
215215 auto *tscc = new ROOT::Deprecated::TSecContextCleanup (port, proto, type);
216216 fCleanup ->Add (tscc);
@@ -221,15 +221,15 @@ void TSecContext::AddForCleanup(Int_t port, Int_t proto, Int_t type)
221221// / Checks if this security context is for method named 'methname'
222222// / Case sensitive.
223223
224- Bool_t TSecContext::IsA (const char *methname)
224+ Bool_t ROOT::Deprecated:: TSecContext::IsA (const char *methname)
225225{
226226 return Bool_t (!strcmp (methname, GetMethodName ()));
227227}
228228
229229// //////////////////////////////////////////////////////////////////////////////
230230// / Check remote OffSet and expiring Date
231231
232- Bool_t TSecContext::IsActive () const
232+ Bool_t ROOT::Deprecated:: TSecContext::IsActive () const
233233{
234234 if (fOffSet > -1 && fExpDate > TDatime ())
235235 return kTRUE ;
@@ -243,7 +243,7 @@ Bool_t TSecContext::IsActive() const
243243// / with cardinality "<number>"
244244// / If opt is "S" prints short in-line form for calls within TFTP and similar
245245
246- void TSecContext::Print (Option_t *opt) const
246+ void ROOT::Deprecated:: TSecContext::Print (Option_t *opt) const
247247{
248248 char aOrd[16 ] = {0 };
249249 char aSpc[16 ] = {0 };
@@ -307,7 +307,7 @@ void TSecContext::Print(Option_t *opt) const
307307// / Returns short string with relevant information about this
308308// / security context
309309
310- const char *TSecContext::AsString (TString &out)
310+ const char *ROOT::Deprecated:: TSecContext::AsString (TString &out)
311311{
312312 if (fOffSet > -1 ) {
313313 char expdate[32 ];
@@ -330,7 +330,7 @@ const char *TSecContext::AsString(TString &out)
330330// / If 'all', all sec context with the same host as ctx
331331// / are cleaned.
332332
333- Bool_t TSecContext::CleanupSecContext (Bool_t)
333+ Bool_t ROOT::Deprecated:: TSecContext::CleanupSecContext (Bool_t)
334334{
335335 AbstractMethod (" CleanupSecContext" );
336336 return kFALSE ;
0 commit comments