PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.sts.registry
Class JPABasedTokenRegistry

java.lang.Object
  extended by org.picketlink.identity.federation.core.sts.registry.AbstractJPARegistry
      extended by org.picketlink.identity.federation.core.sts.registry.JPABasedTokenRegistry
All Implemented Interfaces:
SecurityTokenRegistry

public class JPABasedTokenRegistry
extends AbstractJPARegistry
implements SecurityTokenRegistry

SecurityTokenRegistry implementation that uses JPA to store tokens. By default, the JPA configuration has the name picketlink-sts but a different configuration name can be specified through the constructor that takes a String as a parameter.

Author:
Pedro Silva
See Also:
SecurityToken}

Field Summary
 
Fields inherited from class org.picketlink.identity.federation.core.sts.registry.AbstractJPARegistry
logger
 
Constructor Summary
JPABasedTokenRegistry()
           
JPABasedTokenRegistry(String configuration)
           
 
Method Summary
 void addToken(String id, Object token)
          Add a token to the registry with the given id
 Object getToken(String id)
          Given the id, return a token
 void removeToken(String id)
          Remove a token given the ID
 
Methods inherited from class org.picketlink.identity.federation.core.sts.registry.AbstractJPARegistry
getEntityManagerFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPABasedTokenRegistry

public JPABasedTokenRegistry()

JPABasedTokenRegistry

public JPABasedTokenRegistry(String configuration)
Method Detail

addToken

public void addToken(String id,
                     Object token)
              throws IOException
Description copied from interface: SecurityTokenRegistry
Add a token to the registry with the given id

Specified by:
addToken in interface SecurityTokenRegistry
Throws:
IOException

removeToken

public void removeToken(String id)
                 throws IOException
Description copied from interface: SecurityTokenRegistry
Remove a token given the ID

Specified by:
removeToken in interface SecurityTokenRegistry
Throws:
IOException

getToken

public Object getToken(String id)
Description copied from interface: SecurityTokenRegistry
Given the id, return a token

Specified by:
getToken in interface SecurityTokenRegistry
Returns:

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.