PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.sts.registry
Interface RevocationRegistry

All Known Implementing Classes:
DefaultRevocationRegistry, FileBasedRevocationRegistry, JPABasedRevocationRegistry

public interface RevocationRegistry

A RevocationRegistry is used to store the ids of revoked (canceled) security tokens.

Author:
Stefan Guilhen

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.
 

Method Detail

isRevoked

boolean isRevoked(String tokenType,
                  String id)

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

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

void revokeToken(String tokenType,
                 String id)

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.

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.