public class GlobalAuthenticationStore extends PreferencesMap<AuthenticationData> implements AuthenticationStore
PreferencesMap.ConfigurationData
PASSWORD_KEY, TIMEOUT_KEY, USER_KEY
Constructor and Description |
---|
GlobalAuthenticationStore() |
Modifier and Type | Method and 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) |
get, getKnownKeys, getMostRecentEntry, init, remove, sync
protected AuthenticationData create(String key, long time)
create
in class PreferencesMap<AuthenticationData>
public AuthenticationData getCredentials(String url)
getCredentials
in interface AuthenticationStore
public String getUsername(String url)
getUsername
in interface AuthenticationStore
public String getPassword(String url)
getPassword
in interface AuthenticationStore
public String getOption(String url, String key)
getOption
in interface AuthenticationStore
public String[] getDefinedOptions(String url)
getDefinedOptions
in interface AuthenticationStore
public String[] getKnownURLs()
getKnownURLs
in interface AuthenticationStore
public void add(AuthenticationData authenticationData, boolean persist)
add
in interface AuthenticationStore
public void addCredentials(String url, String user, String password, Properties options, boolean persist)
addCredentials
in interface AuthenticationStore
public static AuthenticationData createAuthenticationData(String url, String user, String password, Properties options)
protected void add(AuthenticationData configurationData)
add
in class PreferencesMap<AuthenticationData>
public void removeCredentials(String url)
removeCredentials
in interface AuthenticationStore
public int getIntOption(String path, String key, int defaultValue)
getIntOption
in interface AuthenticationStore
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.