Last change
on this file since 2801 was 2801, checked in by stoecker, 14 years ago |
fixed line endings of recent checkins
|
File size:
691 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package 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 | */
|
---|
10 | public 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.