org.jboss.seam.security
Class JpaTokenStore
java.lang.Object
org.jboss.seam.security.JpaTokenStore
- All Implemented Interfaces:
- Serializable, TokenStore
@Name(value="org.jboss.seam.security.tokenStore")
@Install(precedence=0,
value=false)
@Scope(value=APPLICATION)
@BypassInterceptors
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
@Create
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)
getTokenClass
public Class getTokenClass()
setTokenClass
public void setTokenClass(Class tokenClass)
getEntityManager
public Expressions.ValueExpression getEntityManager()
setEntityManager
public void setEntityManager(Expressions.ValueExpression expression)
Copyright © 2011 Seam Framework. All Rights Reserved.