Package org.apache.cxf.ws.security.trust
Class DefaultSTSTokenCacher
java.lang.Object
org.apache.cxf.ws.security.trust.DefaultSTSTokenCacher
- All Implemented Interfaces:
STSTokenCacher
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultSTSTokenCacher
public DefaultSTSTokenCacher()
-
-
Method Details
-
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 TokenStoreException Description 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 TokenStoreException Description 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 TokenStoreException Description copied from interface:STSTokenCacherRemove a cached STS token- Specified by:
removeTokenin interfaceSTSTokenCacher- Throws:
TokenStoreException
-