com.ibm.mfp.server.security.external.checks.impl.ExternalizableSecurityCheckConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adapter-maven-api Show documentation
Show all versions of adapter-maven-api Show documentation
IBM MFP Adapter api for adapter as a maven project. BuildNumber is : 8.0.2024082809
The newest version!
/*
* © Copyright IBM Corp. 2016
* All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
package com.ibm.mfp.server.security.external.checks.impl;
import java.util.Properties;
/**
* Defines inactivity timeout property
* Default value is 0, which means inactivity timeout disabled
*
* @author artem on 11/12/15.
*/
public class ExternalizableSecurityCheckConfig extends SecurityCheckConfigurationBase {
public static final String INACTIVITY_TIMEOUT_SEC_CONFIG = "inactivityTimeoutSec";
public int inactivityTimeoutSec;
public ExternalizableSecurityCheckConfig(Properties properties) {
inactivityTimeoutSec = getIntProperty(INACTIVITY_TIMEOUT_SEC_CONFIG, properties, 0);
}
@Override
public void validateExpirationLimit(int expirationLimitSec){
if(inactivityTimeoutSec > expirationLimitSec) {
addMessage(warnings, INACTIVITY_TIMEOUT_SEC_CONFIG, "property value is greater than the expiration limit.");
inactivityTimeoutSec = expirationLimitSec;
}
}
}