|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.srp.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 inherited from class org.jboss.security.srp.SRPVerifierStore (src) |
SRPVerifierStore.VerifierInfo (src) |
Constructor Summary | |
SerialObjectStore()
Create an in memory store and load any VerifierInfo found in ./SerialObjectStore.ser if it exists. |
|
SerialObjectStore(java.io.File storeFile)
Create an in memory store and load any VerifierInfo found in the storeFile archive if it exists. |
Method Summary | |
void |
addUser(java.lang.String username,
java.lang.String password)
|
void |
delUser(java.lang.String username)
|
SRPVerifierStore.VerifierInfo (src) |
getUserVerifier(java.lang.String username)
Get the indicated user's password verifier information. |
static void |
main(java.lang.String[] args)
|
void |
save(java.io.File storeFile)
Save the current in memory map of VerifierInfo to the indicated storeFile by simply serializing the map to the file. |
void |
setUserVerifier(java.lang.String username,
SRPVerifierStore.VerifierInfo (src) info)
Set the indicated users' password verifier information. |
void |
verifyUserChallenge(java.lang.String username,
java.lang.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 java.io.IOException
public SerialObjectStore(java.io.File storeFile) throws java.io.IOException
Method Detail |
public SRPVerifierStore.VerifierInfo (src) getUserVerifier(java.lang.String username) throws java.security.KeyException, java.io.IOException
SRPVerifierStore (src)
getUserVerifier
in interface SRPVerifierStore (src)
java.security.KeyException
java.io.IOException
public void setUserVerifier(java.lang.String username, SRPVerifierStore.VerifierInfo (src) info)
SRPVerifierStore (src)
setUserVerifier
in interface SRPVerifierStore (src)
public void verifyUserChallenge(java.lang.String username, java.lang.Object auxChallenge) throws java.lang.SecurityException
SRPVerifierStore (src)
verifyUserChallenge
in interface SRPVerifierStore (src)
java.lang.SecurityException
public void save(java.io.File storeFile) throws java.io.IOException
java.io.IOException
public void addUser(java.lang.String username, java.lang.String password)
public void delUser(java.lang.String username)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |