Class PolicyCachingConfig


  • public final class PolicyCachingConfig
    extends java.lang.Object
    Policy evaluation caching config Since policies are evaluated by the webservice, caching the result can greatly speed up encrypting a document with a PolicyGrant.
    • Constructor Detail

      • PolicyCachingConfig

        public PolicyCachingConfig​(long maxEntries)
        Parameters:
        maxEntries - maximum number of policy evaluations that will be cached by the SDK. If the maximum number is exceeded, the cache will be cleared prior to storing the next entry.
      • PolicyCachingConfig

        public PolicyCachingConfig()
    • Method Detail

      • getMaxEntries

        public final long getMaxEntries()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • delete

        public void delete()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object