Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

XKMSStatus.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004-2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * XKMSStatus := Interface for Status elements (in KeyBinding)
00021  *
00022  * $Id: XKMSStatus.hpp,v 1.3 2005/06/04 11:30:26 blautenb Exp $
00023  *
00024  */
00025 
00026 #ifndef XKMSSTATUS_INCLUDE
00027 #define XKMSSTATUS_INCLUDE
00028 
00029 // XSEC Includes
00030 
00031 #include <xsec/framework/XSECDefs.hpp>
00032 
00073 class XKMSStatus {
00074 
00077 
00078 protected:
00079 
00080     XKMSStatus() {};
00081 
00082 public:
00083 
00084     virtual ~XKMSStatus() {};
00085 
00087 
00088     enum StatusValue {
00089 
00090         StatusUndefined = 0,    
00091         Valid = 1,              
00092         Invalid = 2,            
00093         Indeterminate = 3       
00095     };
00096 
00097     enum StatusReason {
00098 
00099         ReasonUndefined = 0,    
00100         IssuerTrust = 1,        
00101         RevocationStatus = 2,   
00102         ValidityInterval = 3,   
00103         Signature = 4           
00105     };
00106 
00109 
00119     virtual StatusValue getStatusValue(void) const = 0;
00120 
00137     virtual bool getStatusReason(StatusValue status, StatusReason reason) const = 0;
00138 
00140 
00143 
00158     virtual void setStatusReason(StatusValue status, StatusReason reason, bool value) = 0;
00159 
00161 
00162 private:
00163 
00164     // Unimplemented
00165     XKMSStatus(const XKMSStatus &);
00166     XKMSStatus & operator = (const XKMSStatus &);
00167 
00168 };
00169 
00170 #endif /* XKMSSTATUS_INCLUDE */

Generated on Sun Jul 3 17:37:27 2005 for XML-Security-C by  doxygen 1.4.2