Package org.apache.cxf.ws.security.trust
Interface STSTokenCacher
-
- All Known Implementing Classes:
DefaultSTSTokenCacher
public interface STSTokenCacherThis interface allows you to plug in some custom logic when storing/retrieving STS tokens in/from the cache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidremoveToken(org.apache.cxf.message.Message message, SecurityToken securityToken)Remove a cached STS tokenSecurityTokenretrieveToken(org.apache.cxf.message.Message message, boolean retrieveTokenFromEndpoint)Retrieve a cached STS token.SecurityTokenretrieveToken(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 Detail
-
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 TokenStoreExceptionStore 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 TokenStoreExceptionStore 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 TokenStoreExceptionRemove a cached STS token- Throws:
TokenStoreException
-
-