|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.connector.SimpleCredentialVault org.springframework.extensions.webscripts.connector.AbstractPersistentCredentialVault org.springframework.extensions.webscripts.connector.XMLCredentialVault
public class XMLCredentialVault
A basic implementation of a persistent credential vault where credentials are stored in XML on disk. Note: You should never use anything like this in production. Rather, it is suitable for test suites (locally and within test frameworks). It also is a useful example of another kind of credential vault
Field Summary | |
---|---|
protected String |
location
|
Fields inherited from class org.springframework.extensions.webscripts.connector.AbstractPersistentCredentialVault |
---|
configService |
Fields inherited from class org.springframework.extensions.webscripts.connector.SimpleCredentialVault |
---|
credentialsMap, id |
Constructor Summary | |
---|---|
XMLCredentialVault(String id)
Instantiates a new XML credential vault. |
Method Summary | |
---|---|
protected void |
deserialize(String xml)
Deserialize. |
String |
getLocation()
|
boolean |
load()
Tells the Credential Vault to load state from persisted store |
boolean |
save()
Tells the Credential Vault to write state to persisted store |
protected String |
serialize()
Serialize. |
void |
setLocation(String location)
|
String |
toString()
|
static String |
toXML(org.dom4j.Document document,
boolean pretty)
Converts the document to XML. |
Methods inherited from class org.springframework.extensions.webscripts.connector.AbstractPersistentCredentialVault |
---|
getRemoteConfig, setConfigService, store |
Methods inherited from class org.springframework.extensions.webscripts.connector.SimpleCredentialVault |
---|
getStoredIds, hasCredentials, newCredentials, remove, retrieve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String location
Constructor Detail |
---|
public XMLCredentialVault(String id)
id
- the idMethod Detail |
---|
public void setLocation(String location)
public String getLocation()
public boolean load()
CredentialVault
load
in interface CredentialVault
load
in class SimpleCredentialVault
public boolean save()
CredentialVault
save
in interface CredentialVault
save
in class SimpleCredentialVault
protected String serialize()
protected void deserialize(String xml)
xml
- the xmlpublic String toString()
toString
in class AbstractPersistentCredentialVault
public static String toXML(org.dom4j.Document document, boolean pretty)
document
- the documentpretty
- whether to produce human readable XML
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |