X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2Fsignature%2FCredentialResolver.h;h=cb42fc8de62997922ef1a98f4c2b5608635b577a;hp=f955f37957e7805c972bf3ac42fbe8a2a3ec7dab;hb=e7a65d784215bc04355f014141219b3e7ab4559a;hpb=77769b2e300d1295b8a5d717d9ede50e27d70cea diff --git a/xmltooling/signature/CredentialResolver.h b/xmltooling/signature/CredentialResolver.h index f955f37..cb42fc8 100644 --- a/xmltooling/signature/CredentialResolver.h +++ b/xmltooling/signature/CredentialResolver.h @@ -1,72 +1,72 @@ -/* - * Copyright 2001-2006 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file xmltooling/signature/CredentialResolver.h - * - * Resolves keys and certificates "owned" by an entity - */ - -#if !defined(__xmltooling_credres_h__) && !defined(XMLTOOLING_NO_XMLSEC) -#define __xmltooling_credres_h__ - -#include - -#include -#include -#include - -namespace xmlsignature { - - /** - * An API for resolving local/owned keys and certificates - */ - class XMLTOOL_API CredentialResolver : public xmltooling::Lockable - { - MAKE_NONCOPYABLE(CredentialResolver); - protected: - CredentialResolver() {} - - public: - virtual ~CredentialResolver() {} - - /** - * Returns a secret or private key to use for signing operations. - * The caller is responsible for deleting the key when finished with it. - * - * @return a secret or private key - */ - virtual XSECCryptoKey* getKey() const=0; - - /** - * Returns a set of certificates to publish during signing operations. - * The certificates must be cloned if kept beyond the scope of a lock. - * - * @return a set of certificates - */ - virtual const std::vector& getCertificates() const=0; - }; - - /** - * Registers CredentialResolver classes into the runtime. - */ - void XMLTOOL_API registerCredentialResolvers(); - - /** CredentialResolver based on local files */ - #define FILESYSTEM_CREDENTIAL_RESOLVER "org.opensaml.xmlooling.FilesystemCredentialResolver" -}; - -#endif /* __xmltooling_credres_h__ */ +/* + * Copyright 2001-2006 Internet2 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file xmltooling/signature/CredentialResolver.h + * + * Resolves keys and certificates "owned" by an entity + */ + +#if !defined(__xmltooling_credres_h__) && !defined(XMLTOOLING_NO_XMLSEC) +#define __xmltooling_credres_h__ + +#include + +#include +#include +#include + +namespace xmlsignature { + + /** + * An API for resolving local/owned keys and certificates + */ + class XMLTOOL_API CredentialResolver : public xmltooling::Lockable + { + MAKE_NONCOPYABLE(CredentialResolver); + protected: + CredentialResolver() {} + + public: + virtual ~CredentialResolver() {} + + /** + * Returns a secret or private key to use for signing operations. + * The caller is responsible for deleting the key when finished with it. + * + * @return a secret or private key + */ + virtual XSECCryptoKey* getKey() const=0; + + /** + * Returns a set of certificates to publish during signing operations. + * The certificates must be cloned if kept beyond the scope of a lock. + * + * @return a set of certificates + */ + virtual const std::vector& getCertificates() const=0; + }; + + /** + * Registers CredentialResolver classes into the runtime. + */ + void XMLTOOL_API registerCredentialResolvers(); + + /** CredentialResolver based on local files */ + #define FILESYSTEM_CREDENTIAL_RESOLVER "org.opensaml.xmlooling.FilesystemCredentialResolver" +}; + +#endif /* __xmltooling_credres_h__ */