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(Message message, SecurityToken securityToken)Remove a cached STS tokenSecurityTokenretrieveToken(Message message, boolean retrieveTokenFromEndpoint)Retrieve a cached STS token.SecurityTokenretrieveToken(Message message, Element delegationToken, String cacheKey)Retrieve a cached STS token for a given delegation token ElementvoidstoreToken(Message message, SecurityToken securityToken, boolean storeTokenInEndpoint)Store a token in the cache.voidstoreToken(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(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(Message message, Element delegationToken, String cacheKey) throws TokenStoreException
Retrieve a cached STS token for a given delegation token Element- Throws:
TokenStoreException
-
storeToken
void storeToken(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(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(Message message, SecurityToken securityToken) throws TokenStoreException
Remove a cached STS token- Throws:
TokenStoreException
-
-