-/*\r
- * Copyright 2001-2006 Internet2\r
- * \r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-/**\r
- * @file xmltooling/signature/CredentialResolver.h\r
- * \r
- * Resolves keys and certificates "owned" by an entity \r
- */\r
-\r
-#if !defined(__xmltooling_credres_h__) && !defined(XMLTOOLING_NO_XMLSEC)\r
-#define __xmltooling_credres_h__\r
-\r
-#include <xmltooling/Lockable.h>\r
-\r
-#include <vector>\r
-#include <xsec/enc/XSECCryptoKey.hpp>\r
-#include <xsec/enc/XSECCryptoX509.hpp>\r
-\r
-namespace xmlsignature {\r
-\r
- /**\r
- * An API for resolving local/owned keys and certificates\r
- */\r
- class XMLTOOL_API CredentialResolver : public xmltooling::Lockable\r
- {\r
- MAKE_NONCOPYABLE(CredentialResolver);\r
- protected:\r
- CredentialResolver() {}\r
- \r
- public:\r
- virtual ~CredentialResolver() {}\r
- \r
- /**\r
- * Returns a secret or private key to use for signing operations.\r
- * The caller is responsible for deleting the key when finished with it.\r
- * \r
- * @return a secret or private key\r
- */\r
- virtual XSECCryptoKey* getKey() const=0;\r
- \r
- /**\r
- * Returns a set of certificates to publish during signing operations.\r
- * The certificates must be cloned if kept beyond the scope of a lock.\r
- * \r
- * @return a set of certificates\r
- */\r
- virtual const std::vector<XSECCryptoX509*>& getCertificates() const=0;\r
- };\r
-\r
- /**\r
- * Registers CredentialResolver classes into the runtime.\r
- */\r
- void XMLTOOL_API registerCredentialResolvers();\r
-\r
- /** CredentialResolver based on local files */\r
- #define FILESYSTEM_CREDENTIAL_RESOLVER "org.opensaml.xmlooling.FilesystemCredentialResolver"\r
-};\r
-\r
-#endif /* __xmltooling_credres_h__ */\r
+/*
+ * 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 <xmltooling/Lockable.h>
+
+#include <vector>
+#include <xsec/enc/XSECCryptoKey.hpp>
+#include <xsec/enc/XSECCryptoX509.hpp>
+
+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<XSECCryptoX509*>& 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__ */