xrootd
XrdSciTokensHelper.hh
Go to the documentation of this file.
1 /******************************************************************************/
2 /* */
3 /* X r d S c i T o k e n s H e l p e r . h h */
4 /* */
5 /******************************************************************************/
6 
7 #include <string>
8 #include <vector>
9 
10 //-----------------------------------------------------------------------------
16 //-----------------------------------------------------------------------------
17 
18 class XrdSecEntity;
19 
21 {
22 public:
23 
24 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
32 
34  {std::string issuer_name;
35  std::string issuer_url;
36  };
37 typedef std::vector<ValidIssuer> Issuers;
38 
39 virtual Issuers IssuerList() = 0;
40 
41 //-----------------------------------------------------------------------------
54 //-----------------------------------------------------------------------------
55 
56 virtual bool Validate(const char *token,
57  std::string &emsg,
58  long long *expT=0,
59  XrdSecEntity *entP=0) = 0;
60 
61 //-----------------------------------------------------------------------------
63 //-----------------------------------------------------------------------------
64 
66 virtual ~XrdSciTokensHelper() {}
67 };
std::vector< ValidIssuer > Issuers
Definition: XrdSciTokensHelper.hh:37
virtual Issuers IssuerList()=0
std::string issuer_name
Definition: XrdSciTokensHelper.hh:34
virtual ~XrdSciTokensHelper()
Definition: XrdSciTokensHelper.hh:66
virtual bool Validate(const char *token, std::string &emsg, long long *expT=0, XrdSecEntity *entP=0)=0
std::string issuer_url
Definition: XrdSciTokensHelper.hh:35
Definition: XrdSciTokensHelper.hh:33
XrdSciTokensHelper()
Constructor and Destructor.
Definition: XrdSciTokensHelper.hh:65
Definition: XrdSciTokensHelper.hh:20
Definition: XrdSecEntity.hh:63