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

XSECCryptoKey.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-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  * XSECCryptoKey := Container class to hold cryptographic keys
00021  *                  Should be re-implemented by all providers as the base class
00022  *                  for all keys
00023  *
00024  * Author(s): Berin Lautenbach
00025  *
00026  * $Id: XSECCryptoKey.hpp,v 1.12 2005/06/04 11:30:26 blautenb Exp $
00027  *
00028  */
00029 
00030 
00031 
00032 #ifndef XSECCRYPTOKEY_INCLUDE
00033 #define XSECCRYPTOKEY_INCLUDE
00034 
00035 #include <xsec/framework/XSECDefs.hpp>
00036 #include <xsec/dsig/DSIGConstants.hpp>
00037 
00052 class DSIG_EXPORT XSECCryptoKey {
00053 
00054 public :
00055 
00063     enum KeyType {
00064 
00065         KEY_NONE,
00066         KEY_DSA_PUBLIC,
00067         KEY_DSA_PRIVATE,
00068         KEY_DSA_PAIR,
00069         KEY_RSA_PUBLIC,
00070         KEY_RSA_PRIVATE,
00071         KEY_RSA_PAIR,
00072         KEY_HMAC,
00073         KEY_SYMMETRIC
00074     
00075     };
00076 
00077 
00080     
00085     XSECCryptoKey() {};
00086 
00094     virtual ~XSECCryptoKey() {};
00095 
00097 
00100 
00105     virtual KeyType getKeyType() {return KEY_NONE;}
00106 
00111     virtual const XMLCh * getProviderName() = 0;
00112 
00121     virtual XSECCryptoKey * clone() = 0;
00122 
00124 
00125 };
00126 
00127 
00128 #endif /* XSECCRYPTOKEY_INCLUDE */

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