Retrieval and Setting of Authentication Cache Timeout

Retrieves and sets the authentication cache timeout from a cluster.

Syntax

Long timeout getAuthenticationCacheTimeout () throws SUPAdminException;

void setAuthenticationCacheTimeout(user, timeout);

Returns

If successful, returns an object of the specified type (can be null). If unsuccessful, returns SUPAdminException.

Examples

  • Retrieve and set authentication cache timeout – retrieves and sets the specified authentication cache timeout from a cluster:
    Long timeout = supCluster.getAuthenticationCacheTimeout("admin");
    supCluster.setAuthenticationCacheTimeout("admin", 200L);
    timeout = supCluster.getAuthenticationCacheTimeout("admin");
    assertEquals(new Long(200), timeout);