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

XSECCryptoKey.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2004 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  * imitations 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.10 2004/02/08 10:23:57 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 
00053 class DSIG_EXPORT XSECCryptoKey {
00054 
00055 public :
00056 
00064     enum KeyType {
00065 
00066         KEY_NONE,
00067         KEY_DSA_PUBLIC,
00068         KEY_DSA_PRIVATE,
00069         KEY_DSA_PAIR,
00070         KEY_RSA_PUBLIC,
00071         KEY_RSA_PRIVATE,
00072         KEY_RSA_PAIR,
00073         KEY_HMAC,
00074         KEY_SYMMETRIC
00075     
00076     };
00077 
00078 
00081     
00086     XSECCryptoKey() {};
00087 
00095     virtual ~XSECCryptoKey() {};
00096 
00098 
00101 
00106     virtual KeyType getKeyType() {return KEY_NONE;}
00107 
00112     virtual const XMLCh * getProviderName() = 0;
00113 
00122     virtual XSECCryptoKey * clone() = 0;
00123 
00125 
00126 };
00127 
00128 
00129 #endif /* XSECCRYPTOKEY_INCLUDE */

Generated on Sun Mar 14 20:20:37 2004 for XML-Security-C by doxygen 1.3.2