checkin for GSS import name
[gssweb.git] / json_gssapi / src / datamodel / GSSOID.h
1 /*
2  * Copyright (c) 2014 <copyright holder> <email>
3  * 
4  * For license details, see the LICENSE file in the root of this project.
5  * 
6  */
7
8 #include <string>
9 #include "gssapi.h"
10
11 #include "GSSBuffer.h"
12
13 #ifndef GSSOID_H
14 #define GSSOID_H
15
16 class GSSOID { 
17 public:
18   GSSOID(char *oid_str);
19   GSSOID(std::string oid_str);
20   GSSOID(GSSBuffer oid_str);
21   GSSOID(gss_OID gssoid);
22   ~GSSOID();
23   
24   gss_OID toGss() { return(oid); };
25   std::string toString();
26
27 private:
28   gss_OID oid;
29   bool gssInternal;
30   
31   void init(GSSBuffer oid_str);
32 };
33
34
35 #endif // GSSOID_H