PicketLink Federation Core 2.1.6.Final-redhat-2

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

java.lang.Object
  extended by org.picketlink.identity.federation.core.sts.registry.DefaultRevocationRegistry
All Implemented Interfaces:
RevocationRegistry

public class DefaultRevocationRegistry
extends Object
implements RevocationRegistry

A simple RevocationRegistry that keeps the revoked token ids in a memory-only cache. This registry is only used if no other implementation has been configured and it doesn't persist the revoked ids. For these reasons it is highly recommended that this implementation be used only in testing scenarios.

Author:
Stefan Guilhen

Constructor Summary
DefaultRevocationRegistry()
           
 
Method Summary
 boolean isRevoked(String tokenType, String id)
           Indicates whether the token with the specified id has been revoked or not.
 void revokeToken(String tokenType, String id)
           Adds the specified id to the revocation registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRevocationRegistry

public DefaultRevocationRegistry()
Method Detail

isRevoked

public boolean isRevoked(String tokenType,
                         String id)
Description copied from interface: RevocationRegistry

Indicates whether the token with the specified id has been revoked or not.

Specified by:
isRevoked in interface RevocationRegistry
Parameters:
tokenType - a String representing the token type.
id - a String representing the token id.
Returns:
true if the specified id has been revoked; false otherwise.

revokeToken

public void revokeToken(String tokenType,
                        String id)
Description copied from interface: RevocationRegistry

Adds the specified id to the revocation registry. The security token type can be used to distinguish tokens that may have the same id but that are of different types.

Specified by:
revokeToken in interface RevocationRegistry
Parameters:
tokenType - a String representing the security token type.
id - the id to registered.

PicketLink Federation Core 2.1.6.Final-redhat-2

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