XRootD
XrdSciTokensHelper.hh
Go to the documentation of this file.
1 #ifndef __XrdSciTokensHelper_hh__
2 #define __XrdSciTokensHelper_hh__
3 /******************************************************************************/
4 /* */
5 /* X r d S c i T o k e n s H e l p e r . h h */
6 /* */
7 /******************************************************************************/
8 
9 #include <string>
10 #include <vector>
11 
12 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
19 
20 class XrdSecEntity;
21 
23 {
24 public:
25 
26 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
34 
36  {std::string issuer_name;
37  std::string issuer_url;
38  };
39 typedef std::vector<ValidIssuer> Issuers;
40 
41 virtual Issuers IssuerList() = 0;
42 
43 //-----------------------------------------------------------------------------
56 //-----------------------------------------------------------------------------
57 
58 virtual bool Validate(const char *token,
59  std::string &emsg,
60  long long *expT=0,
61  XrdSecEntity *entP=0) = 0;
62 
63 //-----------------------------------------------------------------------------
65 //-----------------------------------------------------------------------------
66 
68 virtual ~XrdSciTokensHelper() {}
69 };
70 #endif
int emsg(int rc, char *msg)
virtual bool Validate(const char *token, std::string &emsg, long long *expT=0, XrdSecEntity *entP=0)=0
XrdSciTokensHelper()
Constructor and Destructor.
virtual Issuers IssuerList()=0
std::vector< ValidIssuer > Issuers