source: josm/trunk/src/org/openstreetmap/josm/io/auth/CredentialsManagerFactory.java@ 3083

Last change on this file since 3083 was 3083, checked in by bastiK, 14 years ago

added svn:eol-style=native to source files

  • Property svn:eol-style set to native
File size: 691 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io.auth;
3
4/**
5 * CredentialManagerFactory is a factory for the single credential manager used.
6 *
7 * Currently, it defaults to replying an instance of {@see JosmPreferencesCredentialManager}.
8 *
9 */
10public class CredentialsManagerFactory {
11 private static CredentialsManager instance;
12
13 /**
14 * Replies the single credential manager used in JOSM
15 *
16 * @return the single credential manager used in JOSM
17 */
18 static public CredentialsManager getCredentialManager() {
19 if (instance == null)
20 return new JosmPreferencesCredentialManager();
21 return instance;
22 }
23}
Note: See TracBrowser for help on using the repository browser.