|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.srp.SerialObjectStore
public class SerialObjectStore
A simple implementation of the SRPVerifierStore that uses a file store made up of VerifierInfo serialized objects. Users and be added or removed using the addUser and delUser methods. User passwords are never stored in plaintext either in memory or in the serialized file. Note that usernames and passwords are logged when a user is added via the addUser operation. This is a development class and its use in a production environment is not advised.
addUser(String, String)
,
delUser(String)
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.security.srp.SRPVerifierStore |
---|
SRPVerifierStore.VerifierInfo |
Constructor Summary | |
---|---|
SerialObjectStore()
Create an in memory store and load any VerifierInfo found in ./SerialObjectStore.ser if it exists. |
|
SerialObjectStore(File storeFile)
Create an in memory store and load any VerifierInfo found in the storeFile archive if it exists. |
Method Summary | |
---|---|
void |
addUser(String username,
String password)
|
void |
delUser(String username)
|
SRPVerifierStore.VerifierInfo |
getUserVerifier(String username)
Get the indicated user's password verifier information. |
static void |
main(String[] args)
|
void |
save(File storeFile)
Save the current in memory map of VerifierInfo to the indicated storeFile by simply serializing the map to the file. |
void |
setUserVerifier(String username,
SRPVerifierStore.VerifierInfo info)
Set the indicated users' password verifier information. |
void |
verifyUserChallenge(String username,
Object auxChallenge)
Verify an optional auxillary challenge sent from the client to the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerialObjectStore() throws IOException
IOException
public SerialObjectStore(File storeFile) throws IOException
IOException
Method Detail |
---|
public SRPVerifierStore.VerifierInfo getUserVerifier(String username) throws KeyException, IOException
SRPVerifierStore
getUserVerifier
in interface SRPVerifierStore
KeyException
IOException
public void setUserVerifier(String username, SRPVerifierStore.VerifierInfo info)
SRPVerifierStore
setUserVerifier
in interface SRPVerifierStore
public void verifyUserChallenge(String username, Object auxChallenge) throws SecurityException
SRPVerifierStore
verifyUserChallenge
in interface SRPVerifierStore
SecurityException
public void save(File storeFile) throws IOException
IOException
public void addUser(String username, String password)
public void delUser(String username)
public static void main(String[] args) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |