|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgrails-app.services.SimplePasswordManagerService
class SimplePasswordManagerService
Very simple password management service. It does not aim to replace KeyStores, but those may be overkill for most cases. That does not mean that this won't be superseded in the future by an implementation using a KeyStore, but for now such an implementation would be excessive.
Field Summary | |
---|---|
private static java.util.Hashtable |
cache
|
static int |
cacheDuration
|
boolean |
transactional
|
Constructor Summary | |
SimplePasswordManagerService()
|
Method Summary | |
---|---|
static void
|
flushCache()
Forgets all cached passwords |
def
|
retrieve(java.lang.String key, java.lang.String encryptionPassword = '')
Attempts to retrieve a data item by its key, and decrypt it with the provided decryption password. |
EncryptedData
|
store(java.lang.String key, java.lang.String data, java.lang.String encryptionPassword)
Encrypts and stores a data item using EncryptedData records. |
Methods inherited from class java.lang.Object | |
---|---|
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
Field Detail |
---|
private static java.util.Hashtable cache
public static int cacheDuration
boolean transactional
Constructor Detail |
---|
SimplePasswordManagerService()
Method Detail |
---|
public static void flushCache()
public def retrieve(java.lang.String key, java.lang.String encryptionPassword = '')
EncryptedData store(java.lang.String key, java.lang.String data, java.lang.String encryptionPassword)
Groovy Documentation