AuthenticatingRealm.isAuthenticationCachingEnabled

Returns {@code true} if authentication caching should be utilized based on the specified {@link AuthenticationToken} and/or {@link AuthenticationInfo}, {@code false} otherwise. <p/> The default implementation simply delegates to {@link #isAuthenticationCachingEnabled()}, the general-case authentication caching setting. Subclasses can override this to turn on or off caching at runtime based on the specific submitted runtime values.

@param token the submitted authentication token @param info the {@code AuthenticationInfo} acquired from data source lookup via {@link #doGetAuthenticationInfo(hunt.shiro.authc.AuthenticationToken)} @return {@code true} if authentication caching should be utilized based on the specified {@link AuthenticationToken} and/or {@link AuthenticationInfo}, {@code false} otherwise.

  1. bool isAuthenticationCachingEnabled()
  2. bool isAuthenticationCachingEnabled(AuthenticationToken token, AuthenticationInfo info)
    class AuthenticatingRealm
    protected
    bool
    isAuthenticationCachingEnabled

Meta