Package org.apache.cxf.ws.security.trust
Class DefaultSTSTokenCacher
- java.lang.Object
-
- org.apache.cxf.ws.security.trust.DefaultSTSTokenCacher
-
- All Implemented Interfaces:
STSTokenCacher
public class DefaultSTSTokenCacher extends Object implements STSTokenCacher
-
-
Constructor Summary
Constructors Constructor Description DefaultSTSTokenCacher()
-
Method Summary
All Methods Instance Methods Concrete 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
public SecurityToken retrieveToken(org.apache.cxf.message.Message message, boolean retrieveTokenFromEndpoint) throws TokenStoreException
Description copied from interface:STSTokenCacherRetrieve a cached STS token. The retrieveTokenFromEndpoint boolean lets us known whether we want to retrieve the token from the endpoint or not.- Specified by:
retrieveTokenin interfaceSTSTokenCacher- Throws:
TokenStoreException
-
retrieveToken
public SecurityToken retrieveToken(org.apache.cxf.message.Message message, Element delegationToken, String cacheKey) throws TokenStoreException
Description copied from interface:STSTokenCacherRetrieve a cached STS token for a given delegation token Element- Specified by:
retrieveTokenin interfaceSTSTokenCacher- Throws:
TokenStoreException
-
storeToken
public void storeToken(org.apache.cxf.message.Message message, SecurityToken securityToken, boolean storeTokenInEndpoint) throws TokenStoreExceptionDescription copied from interface:STSTokenCacherStore a token in the cache. The storeTokenInEndpoint boolean lets us know whether we want to store the token in the endpoint or not.- Specified by:
storeTokenin interfaceSTSTokenCacher- Throws:
TokenStoreException
-
storeToken
public void storeToken(org.apache.cxf.message.Message message, Element delegationToken, String secTokenId, String cacheKey) throws TokenStoreExceptionDescription copied from interface:STSTokenCacherStore 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.- Specified by:
storeTokenin interfaceSTSTokenCacher- Throws:
TokenStoreException
-
removeToken
public void removeToken(org.apache.cxf.message.Message message, SecurityToken securityToken) throws TokenStoreExceptionDescription copied from interface:STSTokenCacherRemove a cached STS token- Specified by:
removeTokenin interfaceSTSTokenCacher- Throws:
TokenStoreException
-
-