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

NSSCryptoX509.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 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  * NSSCryptoX509:= NSS based class for handling X509 (V3) certificates
00021  *
00022  * Author(s): Milan Tomic
00023  *
00024  */
00025 
00026 #ifndef NSSCRYPTOX509_INCLUDE
00027 #define NSSCRYPTOX509_INCLUDE
00028 
00029 #include <xsec/framework/XSECDefs.hpp>
00030 #include <xsec/enc/XSECCryptoX509.hpp>
00031 
00032 #if defined (HAVE_NSS)
00033 
00034 class NSSCryptoProvider;
00035 
00044 class DSIG_EXPORT NSSCryptoX509 : public XSECCryptoX509 {
00045 
00046 public :
00047 
00050 
00058     NSSCryptoX509();
00059 
00069     NSSCryptoX509(CERTCertificate * pCert);
00070 
00071     virtual ~NSSCryptoX509();
00072 
00074 
00076 
00085     virtual XSECCryptoKey::KeyType getPublicKeyType();
00086 
00095     virtual XSECCryptoKey * clonePublicKey();
00096 
00101     virtual const XMLCh * getProviderName();
00102 
00104 
00107 
00117     virtual void loadX509Base64Bin(const char * buf, unsigned int len);
00118 
00125     virtual safeBuffer &getDEREncodingSB(void) {return m_DERX509;}
00126 
00128 
00129 private:
00130 
00131     safeBuffer              m_DERX509;
00132     CERTCertificate * mp_cert;
00133 
00134 };
00135 
00136 #endif /* HAVE_NSS */
00137 #endif /* NSSCRYPTOX509_INCLUDE */
00138 

Generated on Sun Jan 28 19:37:22 2007 for XML-Security-C by  doxygen 1.4.2