Class HazelCastTokenStore

  • All Implemented Interfaces:
    org.apache.cxf.ws.security.tokenstore.TokenStore

    public class HazelCastTokenStore
    extends Object
    implements org.apache.cxf.ws.security.tokenstore.TokenStore
    • Constructor Detail

      • HazelCastTokenStore

        public HazelCastTokenStore​(String mapName)
    • Method Detail

      • getHazelcastInstance

        public com.hazelcast.core.HazelcastInstance getHazelcastInstance()
        Get the Hazelcast instance
        Returns:
        Hazelcast instance
      • setHazelcastInstance

        public void setHazelcastInstance​(com.hazelcast.core.HazelcastInstance hazelcastInstance)
        Set the Hazelcast instance, otherwise default instance used If you configure Hazelcast instance in spring, you must inject the instance here.
        Parameters:
        hazelcastInstance - Hazelcast instance
      • setTTL

        public void setTTL​(long newTtl)
        Set a new (default) TTL value in seconds
        Parameters:
        newTtl - a new (default) TTL value in seconds
      • getTTL

        public long getTTL()
        Get the (default) TTL value in seconds
        Returns:
        the (default) TTL value in seconds
      • add

        public void add​(org.apache.cxf.ws.security.tokenstore.SecurityToken token)
        Specified by:
        add in interface org.apache.cxf.ws.security.tokenstore.TokenStore
      • add

        public void add​(String identifier,
                        org.apache.cxf.ws.security.tokenstore.SecurityToken token)
        Specified by:
        add in interface org.apache.cxf.ws.security.tokenstore.TokenStore
      • remove

        public void remove​(String identifier)
        Specified by:
        remove in interface org.apache.cxf.ws.security.tokenstore.TokenStore
      • getTokenIdentifiers

        public Collection<String> getTokenIdentifiers()
        Specified by:
        getTokenIdentifiers in interface org.apache.cxf.ws.security.tokenstore.TokenStore
      • getToken

        public org.apache.cxf.ws.security.tokenstore.SecurityToken getToken​(String identifier)
        Specified by:
        getToken in interface org.apache.cxf.ws.security.tokenstore.TokenStore
      • destroy

        public void destroy()