LibreOffice Module xmlsecurity (master) 1
|
#include <securityenvironment_mscryptimpl.hxx>
Public Member Functions | |
SecurityEnvironment_MSCryptImpl (const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
virtual | ~SecurityEnvironment_MSCryptImpl () override |
virtual css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > SAL_CALL | getPersonalCertificates () override |
virtual css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > SAL_CALL | getAllCertificates () override |
virtual css::uno::Reference< css::security::XCertificate > SAL_CALL | getCertificate (const OUString &issuerName, const css::uno::Sequence< sal_Int8 > &serialNumber) override |
virtual css::uno::Reference< css::security::XCertificate > | getCertificate (const OUString &issuerName, const OUString &serialNumber) |
virtual css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > SAL_CALL | buildCertificatePath (const css::uno::Reference< css::security::XCertificate > &beginCert) override |
virtual css::uno::Reference< css::security::XCertificate > SAL_CALL | createCertificateFromRaw (const css::uno::Sequence< sal_Int8 > &rawCertificate) override |
virtual css::uno::Reference< css::security::XCertificate > SAL_CALL | createCertificateFromAscii (const OUString &asciiCertificate) override |
virtual ::sal_Int32 SAL_CALL | verifyCertificate (const css::uno::Reference< css::security::XCertificate > &xCert, const css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > &intermediateCertificates) override |
virtual ::sal_Int32 SAL_CALL | getCertificateCharacters (const css::uno::Reference< css::security::XCertificate > &xCert) override |
virtual OUString SAL_CALL | getSecurityEnvironmentInformation () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
HCRYPTPROV | getCryptoProvider () |
void | setCryptoProvider (HCRYPTPROV aProv) |
LPCTSTR | getKeyContainer () |
void | setKeyContainer (LPCTSTR aKeyContainer) |
HCERTSTORE | getCryptoSlot () |
void | setCryptoSlot (HCERTSTORE aKeyStore) |
HCERTSTORE | getCertDb () |
void | setCertDb (HCERTSTORE aCertDb) |
void | enableDefaultCrypt (bool enable) |
bool | defaultEnabled () |
xmlSecKeysMngrPtr | createKeysManager () |
Static Public Member Functions | |
static void | destroyKeysManager (xmlSecKeysMngrPtr pKeysMngr) |
Private Attributes | |
HCRYPTPROV | m_hProv |
LPCTSTR | m_pszContainer |
HCERTSTORE | m_hKeyStore |
HCERTSTORE | m_hCertStore |
HCERTSTORE | m_hMySystemStore |
HCERTSTORE | m_hRootSystemStore |
HCERTSTORE | m_hTrustSystemStore |
HCERTSTORE | m_hCaSystemStore |
bool | m_bEnableDefault |
css::uno::Reference< css::lang::XMultiServiceFactory > | m_xServiceManager |
Definition at line 49 of file securityenvironment_mscryptimpl.hxx.
|
explicit |
Definition at line 112 of file securityenvironment_mscryptimpl.cxx.
References m_xServiceManager.
|
overridevirtual |
Definition at line 117 of file securityenvironment_mscryptimpl.cxx.
References m_hCaSystemStore, m_hCertStore, m_hKeyStore, m_hMySystemStore, m_hProv, m_hRootSystemStore, m_hTrustSystemStore, and m_pszContainer.
|
overridevirtual |
Definition at line 570 of file securityenvironment_mscryptimpl.cxx.
References begin, i, m_hCertStore, m_hKeyStore, and MswcryCertContextToXCert().
|
overridevirtual |
Definition at line 698 of file securityenvironment_mscryptimpl.cxx.
References createCertificateFromRaw(), and OUStringToOString().
|
overridevirtual |
Definition at line 687 of file securityenvironment_mscryptimpl.cxx.
Referenced by createCertificateFromAscii().
xmlSecKeysMngrPtr SecurityEnvironment_MSCryptImpl::createKeysManager | ( | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 1037 of file securityenvironment_mscryptimpl.cxx.
References defaultEnabled(), m_hCaSystemStore, m_hMySystemStore, m_hRootSystemStore, m_hTrustSystemStore, xmlsecurity::MSCryptoAppliedKeysMngrAdoptKeyStore(), xmlsecurity::MSCryptoAppliedKeysMngrAdoptTrustedStore(), xmlsecurity::MSCryptoAppliedKeysMngrAdoptUntrustedStore(), and xmlsecurity::MSCryptoAppliedKeysMngrCreate().
bool SecurityEnvironment_MSCryptImpl::defaultEnabled | ( | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 1016 of file securityenvironment_mscryptimpl.cxx.
References m_bEnableDefault.
Referenced by createKeysManager().
|
static |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 1097 of file securityenvironment_mscryptimpl.cxx.
void SecurityEnvironment_MSCryptImpl::enableDefaultCrypt | ( | bool | enable | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 1012 of file securityenvironment_mscryptimpl.cxx.
References m_bEnableDefault.
Referenced by SEInitializer_MSCryptImpl::createSecurityContext().
|
inlineoverridevirtual |
Definition at line 82 of file securityenvironment_mscryptimpl.hxx.
HCERTSTORE SecurityEnvironment_MSCryptImpl::getCertDb | ( | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 215 of file securityenvironment_mscryptimpl.cxx.
References m_hCertStore.
|
overridevirtual |
Referenced by getCertificate().
|
virtual |
css::uno::SecurityException | |
css::uno::RuntimeException |
Definition at line 565 of file securityenvironment_mscryptimpl.cxx.
References getCertificate(), and xmlsecurity::numericStringToBigInteger().
|
override |
Definition at line 967 of file securityenvironment_mscryptimpl.cxx.
HCRYPTPROV SecurityEnvironment_MSCryptImpl::getCryptoProvider | ( | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 175 of file securityenvironment_mscryptimpl.cxx.
References m_hProv.
HCERTSTORE SecurityEnvironment_MSCryptImpl::getCryptoSlot | ( | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 200 of file securityenvironment_mscryptimpl.cxx.
References m_hKeyStore.
|
overridevirtual |
Definition at line 162 of file securityenvironment_mscryptimpl.cxx.
LPCTSTR SecurityEnvironment_MSCryptImpl::getKeyContainer | ( | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 190 of file securityenvironment_mscryptimpl.cxx.
References m_pszContainer.
|
overridevirtual |
Definition at line 296 of file securityenvironment_mscryptimpl.cxx.
References i, length, m_bEnableDefault, m_hKeyStore, and MswcryCertContextToXCert().
|
overridevirtual |
Definition at line 1032 of file securityenvironment_mscryptimpl.cxx.
|
overridevirtual |
Definition at line 171 of file securityenvironment_mscryptimpl.cxx.
void SecurityEnvironment_MSCryptImpl::setCertDb | ( | HCERTSTORE | aCertDb | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 219 of file securityenvironment_mscryptimpl.cxx.
References m_hCertStore.
Referenced by SEInitializer_MSCryptImpl::createSecurityContext().
void SecurityEnvironment_MSCryptImpl::setCryptoProvider | ( | HCRYPTPROV | aProv | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 179 of file securityenvironment_mscryptimpl.cxx.
References m_hProv.
void SecurityEnvironment_MSCryptImpl::setCryptoSlot | ( | HCERTSTORE | aKeyStore | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 204 of file securityenvironment_mscryptimpl.cxx.
References m_hKeyStore.
Referenced by SEInitializer_MSCryptImpl::createSecurityContext().
void SecurityEnvironment_MSCryptImpl::setKeyContainer | ( | LPCTSTR | aKeyContainer | ) |
css::uno::Exception | |
css::uno::RuntimeException |
Definition at line 194 of file securityenvironment_mscryptimpl.cxx.
References m_pszContainer.
|
overridevirtual |
Definition at line 167 of file securityenvironment_mscryptimpl.cxx.
References cppu::supportsService().
|
override |
Definition at line 797 of file securityenvironment_mscryptimpl.cxx.
References CheckUnitTestStore(), getCertStoreForIntermediatCerts(), m_hCertStore, m_hKeyStore, SAL_INFO, and traceTrustStatus().
|
private |
Definition at line 71 of file securityenvironment_mscryptimpl.hxx.
Referenced by defaultEnabled(), enableDefaultCrypt(), and getPersonalCertificates().
|
private |
Definition at line 68 of file securityenvironment_mscryptimpl.hxx.
Referenced by createKeysManager(), and ~SecurityEnvironment_MSCryptImpl().
|
private |
Definition at line 62 of file securityenvironment_mscryptimpl.hxx.
Referenced by buildCertificatePath(), getCertDb(), setCertDb(), verifyCertificate(), and ~SecurityEnvironment_MSCryptImpl().
|
private |
Definition at line 59 of file securityenvironment_mscryptimpl.hxx.
Referenced by buildCertificatePath(), getCryptoSlot(), getPersonalCertificates(), setCryptoSlot(), verifyCertificate(), and ~SecurityEnvironment_MSCryptImpl().
|
private |
Definition at line 65 of file securityenvironment_mscryptimpl.hxx.
Referenced by createKeysManager(), and ~SecurityEnvironment_MSCryptImpl().
|
private |
Definition at line 55 of file securityenvironment_mscryptimpl.hxx.
Referenced by getCryptoProvider(), setCryptoProvider(), and ~SecurityEnvironment_MSCryptImpl().
|
private |
Definition at line 66 of file securityenvironment_mscryptimpl.hxx.
Referenced by createKeysManager(), and ~SecurityEnvironment_MSCryptImpl().
|
private |
Definition at line 67 of file securityenvironment_mscryptimpl.hxx.
Referenced by createKeysManager(), and ~SecurityEnvironment_MSCryptImpl().
|
private |
Definition at line 56 of file securityenvironment_mscryptimpl.hxx.
Referenced by getKeyContainer(), setKeyContainer(), and ~SecurityEnvironment_MSCryptImpl().
|
private |
Definition at line 74 of file securityenvironment_mscryptimpl.hxx.
Referenced by SecurityEnvironment_MSCryptImpl().