Add session to cache with both hostname and address.
[cyberduck.git] / source / ch / cyberduck / core / PasswordStoreFactory.java
blob5a296e21bc8d9b69674827bae43c785cd14654b7
1 package ch.cyberduck.core;
3 /*
4 * Copyright (c) 2002-2009 David Kocher. All rights reserved.
6 * http://cyberduck.ch/
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * Bug fixes, suggestions and comments should be sent to:
19 * dkocher@cyberduck.ch
22 /**
23 * @version $Id$
25 public class PasswordStoreFactory extends Factory<HostPasswordStore> {
27 protected PasswordStoreFactory() {
28 super("factory.passwordstore.class");
31 private static HostPasswordStore store;
33 public static synchronized HostPasswordStore get() {
34 if(null == store) {
35 store = new PasswordStoreFactory().create();
37 return store;