Package org.apache.cxf.ws.security.trust
Interface STSTokenCacher
- All Known Implementing Classes:
DefaultSTSTokenCacher
public interface STSTokenCacher
This interface allows you to plug in some custom logic when storing/retrieving STS tokens in/from the cache
-
Method Summary
Modifier and TypeMethodDescriptionvoidremoveToken(org.apache.cxf.message.Message message, SecurityToken securityToken) Remove a cached STS tokenretrieveToken(org.apache.cxf.message.Message message, boolean retrieveTokenFromEndpoint) Retrieve a cached STS token.retrieveToken(org.apache.cxf.message.Message message, Element delegationToken, String cacheKey) Retrieve a cached STS token for a given delegation token ElementvoidstoreToken(org.apache.cxf.message.Message message, SecurityToken securityToken, boolean storeTokenInEndpoint) Store a token in the cache.voidstoreToken(org.apache.cxf.message.Message message, Element delegationToken, String secTokenId, String cacheKey) Store a given delegation token in the cache (or update it if it's already there), with a reference to the security token obtained from the STS.
-
Method Details
-
retrieveToken
SecurityToken retrieveToken(org.apache.cxf.message.Message message, boolean retrieveTokenFromEndpoint) throws TokenStoreException Retrieve a cached STS token. The retrieveTokenFromEndpoint boolean lets us known whether we want to retrieve the token from the endpoint or not.- Throws:
TokenStoreException
-
retrieveToken
SecurityToken retrieveToken(org.apache.cxf.message.Message message, Element delegationToken, String cacheKey) throws TokenStoreException Retrieve a cached STS token for a given delegation token Element- Throws:
TokenStoreException
-
storeToken
void storeToken(org.apache.cxf.message.Message message, SecurityToken securityToken, boolean storeTokenInEndpoint) throws TokenStoreException Store a token in the cache. The storeTokenInEndpoint boolean lets us know whether we want to store the token in the endpoint or not.- Throws:
TokenStoreException
-
storeToken
void storeToken(org.apache.cxf.message.Message message, Element delegationToken, String secTokenId, String cacheKey) throws TokenStoreException Store a given delegation token in the cache (or update it if it's already there), with a reference to the security token obtained from the STS.- Throws:
TokenStoreException
-
removeToken
void removeToken(org.apache.cxf.message.Message message, SecurityToken securityToken) throws TokenStoreException Remove a cached STS token- Throws:
TokenStoreException
-