public final class PasswordAuthenticationStores extends Object
PasswordAuthenticationStore
s.Modifier and Type | Method and Description |
---|---|
static PasswordAuthenticationStore |
encryptPasswords(SecretKey secretKey,
PasswordAuthenticationStore delegate)
Creates and returns a
PasswordAuthenticationStore that forwards all operations to the
delegate, except that it encrypts and decrypts passwords on-the-fly. |
static DestroyableProperties |
propertiesFileDestroyableProperties(File propertiesFile,
String comments)
Creates and returns a
DestroyableProperties object which uses a properties file as its persistent store. |
static PasswordAuthenticationStore |
propertiesPasswordAuthenticationStore(DestroyableProperties delegate)
Creates and returns a
PasswordAuthenticationStore which uses a given DestroyableProperties object
for persistent storage. |
public static PasswordAuthenticationStore propertiesPasswordAuthenticationStore(DestroyableProperties delegate)
PasswordAuthenticationStore
which uses a given DestroyableProperties
object
for persistent storage.public static PasswordAuthenticationStore encryptPasswords(SecretKey secretKey, PasswordAuthenticationStore delegate)
PasswordAuthenticationStore
that forwards all operations to the
delegate, except that it encrypts and decrypts passwords on-the-fly. Uses the user name as the "salt"
for encryption/decryption.public static DestroyableProperties propertiesFileDestroyableProperties(File propertiesFile, String comments) throws IOException
DestroyableProperties
object which uses a properties file as its persistent store.IOException
Copyright © 2018 Arno Unkrig. All rights reserved.