/* */ #ifndef _D_NETRC_AUTH_RESOLVER_H_ #define _D_NETRC_AUTH_RESOLVER_H_ #include "AbstractAuthResolver.h" #include "Netrc.h" class NetrcAuthResolver : public AbstractAuthResolver { private: NetrcHandle _netrc; AuthConfigHandle findNetrcAuthenticator(const string& hostname) const; public: virtual ~NetrcAuthResolver() {} virtual AuthConfigHandle resolveAuthConfig(const string& hostname); void setNetrc(const NetrcHandle& netrc) { _netrc = netrc; } NetrcHandle getNetrc() const { return _netrc; } }; typedef SharedHandle NetrcAuthResolverHandle; #endif // _D_NETRC_AUTH_RESOLVER_H_