Class SafeGCRetentionPolicy

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.cache.RetentionPolicy
    Direct Known Subclasses:
    RefreshTokenRetentionPolicy, TokenExchangeRecordRetentionPolicy

    public abstract class SafeGCRetentionPolicy
    extends Object
    implements edu.uiuc.ncsa.security.core.cache.RetentionPolicy
    For retention policies that are "safe". This means that if this is enabled, then each token is checked to see if it was created by the current server. If not, it is retained. This is useful in the case of a shared database, where each token has the server address.

    E.g.

    If the service address is "http://test.cilogon.org" but the token starts with "https://cilogon.org" it will be skipped.

    Created by Jeff Gaynor
    on 1/27/21 at 2:35 PM

    • Constructor Detail

      • SafeGCRetentionPolicy

        public SafeGCRetentionPolicy​(String serviceAddress,
                                     boolean safeGC)
    • Method Detail

      • safeGCSkipIt

        protected boolean safeGCSkipIt​(String key)