Class SystemCertsVerification
- java.lang.Object
-
- com.netscape.cms.selftests.ASelfTest
-
- com.netscape.cms.selftests.common.SystemCertsVerification
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_FULL_CA_OCSP_VERIFYstatic java.lang.StringPROP_SUB_ID-
Fields inherited from class com.netscape.cms.selftests.ASelfTest
mConfig, mInstanceName, mPrefix, mSelfTestSubsystem
-
Fields inherited from interface com.netscape.certsrv.selftests.ISelfTest
PROP_PLUGIN
-
-
Constructor Summary
Constructors Constructor Description SystemCertsVerification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IConfigStoregetSelfTestConfigStore()Returns the root configuration storage (self test parameters) associated with this subsystem.java.lang.StringgetSelfTestDescription(java.util.Locale locale)Retrieves description associated with an individual self test.java.lang.StringgetSelfTestName()Returns the name associated with this self test.voidinitSelfTest(ISelfTestSubsystem subsystem, java.lang.String instanceName, IConfigStore parameters)Initializes this subsystem with the configuration store associated with this instance name.voidrunSelfTest(ILogEventListener logger)Execute an individual self test.voidshutdownSelfTest()Stops this subsystem.voidstartupSelfTest()Notifies this subsystem if it is in execution mode.
-
-
-
Field Detail
-
PROP_SUB_ID
public static final java.lang.String PROP_SUB_ID
- See Also:
- Constant Field Values
-
PROP_FULL_CA_OCSP_VERIFY
public static final java.lang.String PROP_FULL_CA_OCSP_VERIFY
- See Also:
- Constant Field Values
-
-
Method Detail
-
initSelfTest
public void initSelfTest(ISelfTestSubsystem subsystem, java.lang.String instanceName, IConfigStore parameters) throws EDuplicateSelfTestException, EInvalidSelfTestException, EMissingSelfTestException
Initializes this subsystem with the configuration store associated with this instance name.- Specified by:
initSelfTestin interfaceISelfTest- Overrides:
initSelfTestin classASelfTest- Parameters:
subsystem- the associated subsysteminstanceName- the name of this self test instanceparameters- configuration store (self test parameters)- Throws:
EDuplicateSelfTestException- subsystem has duplicate name/valueEInvalidSelfTestException- subsystem has invalid name/valueEMissingSelfTestException- subsystem has missing name/value
-
startupSelfTest
public void startupSelfTest() throws ESelfTestExceptionNotifies this subsystem if it is in execution mode.- Specified by:
startupSelfTestin interfaceISelfTest- Specified by:
startupSelfTestin classASelfTest- Throws:
ESelfTestException- failed to start
-
shutdownSelfTest
public void shutdownSelfTest()
Stops this subsystem. The subsystem may call shutdownSelfTest anytime after initialization.- Specified by:
shutdownSelfTestin interfaceISelfTest- Specified by:
shutdownSelfTestin classASelfTest
-
getSelfTestName
public java.lang.String getSelfTestName()
Returns the name associated with this self test. This method may return null if the self test has not been intialized.- Specified by:
getSelfTestNamein interfaceISelfTest- Overrides:
getSelfTestNamein classASelfTest- Returns:
- instanceName of this self test
-
getSelfTestConfigStore
public IConfigStore getSelfTestConfigStore()
Returns the root configuration storage (self test parameters) associated with this subsystem.- Specified by:
getSelfTestConfigStorein interfaceISelfTest- Overrides:
getSelfTestConfigStorein classASelfTest- Returns:
- configuration store (self test parameters) of this subsystem
-
getSelfTestDescription
public java.lang.String getSelfTestDescription(java.util.Locale locale)
Retrieves description associated with an individual self test. This method may return null.- Specified by:
getSelfTestDescriptionin interfaceISelfTest- Specified by:
getSelfTestDescriptionin classASelfTest- Parameters:
locale- locale of the client that requests the description- Returns:
- description of self test
-
runSelfTest
public void runSelfTest(ILogEventListener logger) throws java.lang.Exception
Execute an individual self test.- Specified by:
runSelfTestin interfaceISelfTest- Specified by:
runSelfTestin classASelfTest- Parameters:
logger- specifies logging subsystem- Throws:
java.lang.Exception- self test exception
-
-