org.picketlink.identity.federation.core.sts.registry
Class JPABasedTokenRegistry
java.lang.Object
org.picketlink.identity.federation.core.sts.registry.AbstractJPARegistry
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}
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JPABasedTokenRegistry
public JPABasedTokenRegistry()
JPABasedTokenRegistry
public JPABasedTokenRegistry(String configuration)
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:
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.