-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The RevocationCheckingConfig has been added to encapsulate auths.revocationChecking.* params.
- Loading branch information
Showing
3 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
base/server/src/main/java/org/dogtagpki/server/authentication/RevocationCheckingConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// | ||
// Copyright Red Hat, Inc. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
// | ||
package org.dogtagpki.server.authentication; | ||
|
||
import com.netscape.certsrv.base.EBaseException; | ||
import com.netscape.cmscore.base.ConfigStorage; | ||
import com.netscape.cmscore.base.ConfigStore; | ||
import com.netscape.cmscore.base.SimpleProperties; | ||
|
||
/** | ||
* Provides auths.revocationChecking.* parameters. | ||
*/ | ||
public class RevocationCheckingConfig extends ConfigStore { | ||
|
||
public RevocationCheckingConfig(ConfigStorage storage) { | ||
super(storage); | ||
} | ||
|
||
public RevocationCheckingConfig(String name, SimpleProperties source) { | ||
super(name, source); | ||
} | ||
|
||
/** | ||
* Returns auths.revocationChecking.enabled parameter. | ||
*/ | ||
public boolean isEnabled() throws EBaseException { | ||
return getBoolean("enabled", false); | ||
} | ||
|
||
/** | ||
* Returns auths.revocationChecking.bufferSize parameter. | ||
*/ | ||
public int getBufferSize() throws EBaseException { | ||
return getInteger("bufferSize", 0); | ||
} | ||
|
||
/** | ||
* Returns auths.revocationChecking.validityInterval parameter. | ||
*/ | ||
public int getValidityInterval() throws EBaseException { | ||
return getInteger("validityInterval", 28800); | ||
} | ||
|
||
/** | ||
* Returns auths.revocationChecking.unknownStateInterval parameter. | ||
*/ | ||
public int getUnknownStateInterval() throws EBaseException { | ||
return getInteger("unknownStateInterval", 1800); | ||
} | ||
} |