org.jboss.seam.security
Class JpaTokenStore
java.lang.Object
org.jboss.seam.security.JpaTokenStore
- All Implemented Interfaces:
- Serializable, TokenStore
@ApplicationScoped
public class JpaTokenStore
- extends Object
- implements TokenStore, Serializable
A TokenStore implementation, stores tokens inside a database table.
- Author:
- Shane Bryzak
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaTokenStore
public JpaTokenStore()
create
@Inject
public void create()
createToken
public void createToken(String username,
String value)
- Specified by:
createToken in interface TokenStore
validateToken
public boolean validateToken(String username,
String value)
- Specified by:
validateToken in interface TokenStore
invalidateToken
public void invalidateToken(String username,
String value)
- Specified by:
invalidateToken in interface TokenStore
invalidateAll
public void invalidateAll(String username)
- Specified by:
invalidateAll in interface TokenStore
lookupToken
public Object lookupToken(String username,
String value)
getTokenEntityClass
public Class<?> getTokenEntityClass()
setTokenEntityClass
public void setTokenEntityClass(Class<?> tokenEntityClass)
Copyright © 2011 Seam Framework. All Rights Reserved.