Class WebacConfiguration


  • public class WebacConfiguration
    extends Object
    • Constructor Detail

      • WebacConfiguration

        public WebacConfiguration()
    • Method Detail

      • getEnabled

        public boolean getEnabled()
        Get whether basic authentication has been enabled.
        Returns:
        true if basic auth is enabled; false otherwise
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enable or disable basic authentication.
        Parameters:
        enabled - true if basic auth is enabled; false otherwise
      • getCacheSize

        public long getCacheSize()
        Get the maximum size of the cache.
        Returns:
        the maximum size of the cache (default=1000)
      • setCacheSize

        public void setCacheSize​(long cacheSize)
        Set the maxiumum size of the cache.
        Parameters:
        cacheSize - the size of the cache
      • getCacheExpireSeconds

        public long getCacheExpireSeconds()
        Get the cache expire time in seconds.
        Returns:
        the number of seconds after which an element expires (default=600)
      • setCacheExpireSeconds

        public void setCacheExpireSeconds​(long cacheExpireSeconds)
        Set the cache exprie time in seconds.
        Parameters:
        cacheExpireSeconds - the number of seconds after which an element expires