762c2e782692858f6d2baaa3eff3707e49d8e1cd
[gssweb.git] / json_gssapi / src / datamodel / GSSDisplayStatus.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 #ifndef GSSDISPLAYSTATUS_H
9 #define GSSDISPLAYSTATUS_H
10
11 #include <gssapi.h>
12 #include <string>
13 #include <ostream>
14
15 using std::string;
16
17 class GSSDisplayStatus
18 {
19 public:
20     GSSDisplayStatus(OM_uint32 major, 
21                      OM_uint32 minor,
22                      gss_OID   mech  );
23     ~GSSDisplayStatus();
24     
25     string getMajorMessage() const { return majorMessage; }
26     string getMinorMessage() const { return minorMessage; }
27     
28 private:
29     string minorMessage;
30     string majorMessage;
31         
32     GSSDisplayStatus& operator= ( const GSSDisplayStatus& other );
33 };
34
35 #endif // GSSDISPLAYSTATUS_H