org.jboss.seam.security
Class JpaTokenStore

java.lang.Object
  extended by 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

Constructor Summary
JpaTokenStore()
           
 
Method Summary
 void create()
           
 void createToken(String username, String value)
           
 Class<?> getTokenEntityClass()
           
 void invalidateAll(String username)
           
 void invalidateToken(String username, String value)
           
 Object lookupToken(String username, String value)
           
 void setTokenEntityClass(Class<?> tokenEntityClass)
           
 boolean validateToken(String username, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaTokenStore

public JpaTokenStore()
Method Detail

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.