Retrieval and Setting of Maximum Allowed Authentication Failures

Retrieves and sets the maximum number of allowed authentication failures.

Syntax

Integer getMaximumAllowedAuthenticationFailure(String securityConfiguration) throws SUPAdminException;

void setMaximumAllowedAuthenticationFailure(String securityConfiguration, Integer maximumAllowed) throws SUPAdminException;

Returns

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

Examples

  • Retrieve or set cluster properties
    //Get maximum allowed authentication failures
    Integer threshold= supCluster.getMaximumAllowedAuthenticationFailure("admin");
    //Set maximum allowed authentication failures
    supCluster.setMaximumAllowedAuthenticationFailure("admin", 20);