public class JDBCRevocationRegistry extends AbstractJDBCRegistry implements RevocationRegistry
SecurityTokenRegistry
using JDBCdataSource, logger
Constructor and Description |
---|
JDBCRevocationRegistry() |
JDBCRevocationRegistry(String jndiName) |
Modifier and Type | Method and Description |
---|---|
boolean |
isRevoked(String tokenType,
String tokenID)
Indicates whether the token with the specified id has been revoked or not.
|
void |
revokeToken(String tokenType,
String tokenID)
Adds the specified id to the revocation registry.
|
safeClose, safeClose, safeClose
public JDBCRevocationRegistry()
public JDBCRevocationRegistry(String jndiName)
public boolean isRevoked(String tokenType, String tokenID)
RevocationRegistry
Indicates whether the token with the specified id has been revoked or not.
isRevoked
in interface RevocationRegistry
tokenType
- a String
representing the token type.tokenID
- a String
representing the token id.true
if the specified id has been revoked; false
otherwise.RevocationRegistry.isRevoked(String, String)
public void revokeToken(String tokenType, String tokenID)
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.
revokeToken
in interface RevocationRegistry
tokenType
- a String
representing the security token type.tokenID
- the id to registered.RevocationRegistry.revokeToken(String, String)
Copyright © 2016 JBoss by Red Hat. All rights reserved.