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

XKMSResultType.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  * XKMSResultType := Interface for base schema of XKMS Request messages
00021  *
00022  * $Id: XKMSResultType.hpp,v 1.5 2005/06/04 11:30:26 blautenb Exp $
00023  *
00024  */
00025 
00026 #ifndef XKMSRESULTTYPE_INCLUDE
00027 #define XKMSRESULTTYPE_INCLUDE
00028 
00029 // XSEC Includes
00030 
00031 #include <xsec/framework/XSECDefs.hpp>
00032 #include <xsec/xkms/XKMSMessageAbstractType.hpp>
00033 
00066 class XKMSResultType : public XKMSMessageAbstractType {
00067 
00068 public:
00069 
00074     enum ResultMajor {
00075         NoneMajor=0,        
00076         Success,            
00077         VersionMismatch,    
00078         Sender,             
00079         Receiver,           
00080         Represent,          
00081         Pending             
00082     };
00083 
00084     enum ResultMinor {
00085         NoneMinor=0,        
00086         NoMatch,            
00089         TooManyResponses,   
00092         Incomplete,         
00093         Failure,            
00096         Refused,            
00099         NoAuthentication,   
00100         MessageNotSupported,
00101         UnknownResponseId,  
00102         RepresentRequired,  
00103         NotSynchronous      
00104     };
00105 
00108 
00109 protected:
00110 
00111     XKMSResultType() {};
00112 
00113 public:
00114 
00115     virtual ~XKMSResultType() {};
00116 
00119 
00129     virtual ResultMajor getResultMajor(void) const = 0;
00130 
00140     virtual ResultMinor getResultMinor(void) const = 0;
00141 
00151     virtual const XMLCh * getRequestId(void) const = 0;
00152 
00163     virtual const XMLCh * getRequestSignatureValue(void) const = 0;
00164 
00166 
00169 
00176     virtual void setResultMajor(ResultMajor rmaj) = 0;
00177 
00184     virtual void setResultMinor(ResultMinor rmin) = 0;
00185 
00195     virtual void setRequestId(const XMLCh * id) = 0;
00196 
00207     virtual void setRequestSignatureValue(const XMLCh * value) = 0;
00208 
00210 
00211 
00212 private:
00213 
00214     // Unimplemented
00215     XKMSResultType(const XKMSResultType &);
00216     XKMSResultType & operator = (const XKMSResultType &);
00217 
00218 };
00219 
00220 #endif /* XKMSRESULTTYPE_INCLUDE */

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