PicketLink Federation Core 2.1.6.Final-redhat-2

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

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

Field Summary
protected  Map<String,Object> tokens
           
 
Constructor Summary
DefaultTokenRegistry()
           
 
Method Summary
 void addToken(String tokenID, Object token)
          Add a token to the registry with the given id
 Object getToken(String tokenID)
          Given the id, return a token
 void removeToken(String tokenID)
          Remove a token given the ID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokens

protected Map<String,Object> tokens
Constructor Detail

DefaultTokenRegistry

public DefaultTokenRegistry()
Method Detail

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)

PicketLink Federation Core 2.1.6.Final-redhat-2

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