Class GlobalAuthenticationStore
- java.lang.Object
-
- org.pentaho.reporting.designer.core.settings.prefs.PreferencesMap<AuthenticationData>
-
- org.pentaho.reporting.designer.core.auth.GlobalAuthenticationStore
-
- All Implemented Interfaces:
AuthenticationStore
public class GlobalAuthenticationStore extends PreferencesMap<AuthenticationData> implements AuthenticationStore
Todo: Document me!- Author:
- Thomas Morgner.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.pentaho.reporting.designer.core.settings.prefs.PreferencesMap
PreferencesMap.ConfigurationData
-
-
Field Summary
-
Fields inherited from interface org.pentaho.reporting.designer.core.auth.AuthenticationStore
PASSWORD_KEY, TIMEOUT_KEY, USER_KEY
-
-
Constructor Summary
Constructors Constructor Description GlobalAuthenticationStore()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(AuthenticationData configurationData)
void
add(AuthenticationData authenticationData, boolean persist)
void
addCredentials(String url, String user, String password, Properties options, boolean persist)
protected AuthenticationData
create(String key, long time)
static AuthenticationData
createAuthenticationData(String url, String user, String password, Properties options)
AuthenticationData
getCredentials(String url)
String[]
getDefinedOptions(String url)
int
getIntOption(String path, String key, int defaultValue)
String[]
getKnownURLs()
String
getOption(String url, String key)
String
getPassword(String url)
String
getUsername(String url)
void
removeCredentials(String url)
-
Methods inherited from class org.pentaho.reporting.designer.core.settings.prefs.PreferencesMap
get, getKnownKeys, getMostRecentEntry, init, remove, sync
-
-
-
-
Method Detail
-
create
protected AuthenticationData create(String key, long time)
- Specified by:
create
in classPreferencesMap<AuthenticationData>
-
getCredentials
public AuthenticationData getCredentials(String url)
- Specified by:
getCredentials
in interfaceAuthenticationStore
-
getUsername
public String getUsername(String url)
- Specified by:
getUsername
in interfaceAuthenticationStore
-
getPassword
public String getPassword(String url)
- Specified by:
getPassword
in interfaceAuthenticationStore
-
getOption
public String getOption(String url, String key)
- Specified by:
getOption
in interfaceAuthenticationStore
-
getDefinedOptions
public String[] getDefinedOptions(String url)
- Specified by:
getDefinedOptions
in interfaceAuthenticationStore
-
getKnownURLs
public String[] getKnownURLs()
- Specified by:
getKnownURLs
in interfaceAuthenticationStore
-
add
public void add(AuthenticationData authenticationData, boolean persist)
- Specified by:
add
in interfaceAuthenticationStore
-
addCredentials
public void addCredentials(String url, String user, String password, Properties options, boolean persist)
- Specified by:
addCredentials
in interfaceAuthenticationStore
-
createAuthenticationData
public static AuthenticationData createAuthenticationData(String url, String user, String password, Properties options)
-
add
protected void add(AuthenticationData configurationData)
- Overrides:
add
in classPreferencesMap<AuthenticationData>
-
removeCredentials
public void removeCredentials(String url)
- Specified by:
removeCredentials
in interfaceAuthenticationStore
-
getIntOption
public int getIntOption(String path, String key, int defaultValue)
- Specified by:
getIntOption
in interfaceAuthenticationStore
-
-