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.
| Constructor and Description |
|---|
DefaultRevocationRegistry() |
public boolean isRevoked(String tokenType, String id)
RevocationRegistryIndicates whether the token with the specified id has been revoked or not.
isRevoked in interface RevocationRegistrytokenType - a String representing the token type.id - a String representing the token id.true if the specified id has been revoked; false otherwise.public void revokeToken(String tokenType, String id)
RevocationRegistryAdds 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.
revokeToken in interface RevocationRegistrytokenType - a String representing the security token type.id - the id to registered.Copyright © 2013 JBoss Inc.. All Rights Reserved.