org.picketlink.identity.federation.core.sts.registry
Class DefaultTokenRegistry
java.lang.Object
org.picketlink.identity.federation.core.sts.registry.DefaultTokenRegistry
- All Implemented Interfaces:
- SecurityTokenRegistry
public class DefaultTokenRegistry
- extends Object
- implements SecurityTokenRegistry
Hashmap based token registry
- Since:
- Jan 4, 2011
- Author:
- Anil.Saldhana@redhat.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tokens
protected Map<String,Object> tokens
DefaultTokenRegistry
public DefaultTokenRegistry()
addToken
public void addToken(String tokenID,
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
- See Also:
SecurityTokenRegistry.addToken(java.lang.String,
java.lang.Object)
getToken
public Object getToken(String tokenID)
- Description copied from interface:
SecurityTokenRegistry
- Given the id, return a token
- Specified by:
getToken
in interface SecurityTokenRegistry
- Returns:
- See Also:
SecurityTokenRegistry.getToken(java.lang.String)
removeToken
public void removeToken(String tokenID)
throws IOException
- Description copied from interface:
SecurityTokenRegistry
- Remove a token given the ID
- Specified by:
removeToken
in interface SecurityTokenRegistry
- Throws:
IOException
- See Also:
SecurityTokenRegistry.removeToken(java.lang.String)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.