|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.semispace.ws.TokenFromSpaceAuthenticator
public class TokenFromSpaceAuthenticator
Query on simple name / value elements read from space. This implementation exist as an example and for the benefit of junit tests. You will want to implement your own version in a live situation.
See method doc for more information.
NameValueQuery
Constructor Summary | |
---|---|
TokenFromSpaceAuthenticator()
|
Method Summary | |
---|---|
String |
authenticate(String username,
String password)
As we use NameValueQuery from the semispace-main, we prepend the name field with authname= in order to
avoid name clashes. |
boolean |
isTokenValid(String token)
Side effect: The token life was renewed |
void |
setSpace(SemiSpaceInterface space)
For the benefit of spring |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokenFromSpaceAuthenticator()
Method Detail |
---|
public void setSpace(SemiSpaceInterface space)
public String authenticate(String username, String password)
authname=
in order to
avoid name clashes.
authenticate
in interface TokenAuthenticator
TokenAuthenticator.authenticate(java.lang.String, java.lang.String)
public boolean isTokenValid(String token)
isTokenValid
in interface TokenAuthenticator
TokenAuthenticator.isTokenValid(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |