Package com.netscape.cmscore.apps
Class CMSEngine
java.lang.Object
com.netscape.cmscore.apps.CMSEngine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Auditorprotected AuthSubsystemprotected AuthzSubsystemprotected PKIClientSocketListenerprotected EngineConfigprotected DBSubsystemprotected CMSGatewayprotected JobsSchedulerprotected JssSubsystemstatic org.slf4j.Loggerprotected LogSubsystemprotected EngineConfigprotected OidLoaderSubsystemprotected RequestNotifierprotected RequestNotifierprotected RequestQueueprotected RequestRepositoryprotected RequestSubsystemprotected PKIServerSocketListenerprotected ServerXmlfinal Map<String,SubsystemInfo> protected UGSubsystemprotected X500NameSubsystem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidautoShutdown(boolean restart) voidsign some known data to determine if signing key is botched; if so, proceed to graceful shutdownvoidvoidvoidcreateConfig(ConfigStorage storage) voidvoidvoidShuts down subsystems in backwards order exceptions are ignored.returns the main config storeintgetID()getName()getPendingListener(String name) get listener from listener listintgetPID()getRequestListener(String name) Retrieves the request listener by name.Retrieves all request listeners.get request notifierlongget time server started upgetSubsystem(String name) voidinit()initialize all static, dynamic and final static subsystems.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidinitSubsystem(Subsystem subsystem, ConfigStore subsystemConfig) voidvoidvoidvoidbooleanstatic booleanisNT()booleanbooleanisReady()booleanisRevoked(X509Certificate[] certificates) booleanvoidloadConfig(String path) loadConfigStore(String path) protected voidload subsystemsvoidvoidputPasswordCache(String tag, String pw) voidResends requests New non-blocking recover method.voidregisterPendingListener(RequestListener listener) register listener for pending requestsvoidregisterPendingListener(String name, RequestListener listener) register listener for pending requests with a name.voidregisterRequestListener(RequestListener listener) Registers a request listener.voidregisterRequestListener(String name, RequestListener listener) Registers a request listener.voidremoveRequestListener(RequestListener listener) Removes a request listener.voidremoveRequestListener(String name) removes listener with a name.voidsetCSState(int mode) voidvoidsetListOfVerifiedCerts(int size, long interval, long unknownStateInterval) voidvoidsetPendingNotifier(RequestNotifier pendingNotifier) voidsetRequestNotifier(RequestNotifier requestNotifier) voidsetRequestQueue(RequestQueue requestQueue) voidsetRequestRepository(RequestRepository requestRepository) voidsetServerCertNickname(String newName) voidsetServerCertNickname(String tokenName, String nickName) voidsetSubsystemEnabled(String id, boolean enabled) voidshutdown()Shuts down subsystems in backwards order exceptions are ignored.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidvoidvoidvoidvoidstart()protected voidvoidinttestLDAPConnection(String name, LdapConnInfo info, String binddn, String pwd) voidvoidVerify a certificate by its tag name, do a full verification.voidverifySystemCertByTag(String tag, boolean checkValidityOnly) Verify a certificate by its tag name.voidverifySystemCerts(boolean checkValidityOnly) Go through all system certs and check to see if they are good and audit the result.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
id
-
name
-
instanceDir
-
config
-
mConfig
-
serverXml
-
auditor
-
logSubsystem
-
clientSocketListener
-
serverSocketListener
-
jssSubsystem
-
dbSubsystem
-
requestRepository
-
requestQueue
-
ugSubsystem
-
oidLoaderSubsystem
-
x500NameSubsystem
-
requestSubsystem
-
authSubsystem
-
authzSubsystem
-
gateway
-
jobsScheduler
-
subsystemInfos
-
subsystems
-
unsecurePort
-
securePort
-
requestNotifier
-
pendingNotifier
-
mVCList
-
-
Constructor Details
-
CMSEngine
-
-
Method Details
-
getID
-
setID
-
getName
-
setName
-
getPluginRegistry
-
getLogSubsystem
-
getAuditor
-
getClientSocketListener
-
getServerSocketListener
-
getJSSSubsystem
-
getDBSubsystem
-
getRequestRepository
-
setRequestRepository
-
getRequestQueue
-
setRequestQueue
-
getUGSubsystem
-
getOIDLoaderSubsystem
-
getX500NameSubsystem
-
getRequestSubsystem
-
getAuthSubsystem
-
getAuthzSubsystem
-
getCMSGateway
-
getJobsScheduler
-
getRequestNotifier
get request notifier -
setRequestNotifier
-
getRequestListenerNames
Retrieves all request listeners.- Returns:
- name enumeration of all request listeners
-
getRequestListener
Retrieves the request listener by name.- Parameters:
name- request listener name- Returns:
- the request listener
-
registerRequestListener
Registers a request listener. -
registerRequestListener
Registers a request listener.- Parameters:
name- under request listener is going to be registeredlistener- request listener to be registered
-
removeRequestListener
Removes a request listener.- Parameters:
listener- request listener to be removed
-
removeRequestListener
removes listener with a name. -
getPendingNotifier
-
setPendingNotifier
-
getPendingListener
get listener from listener list -
registerPendingListener
register listener for pending requests -
registerPendingListener
register listener for pending requests with a name. -
loadConfig
- Throws:
Exception
-
createConfig
- Throws:
Exception
-
getPasswordStore
- Throws:
EBaseException
-
initDebug
- Throws:
Exception
-
initSubsystemListeners
- Throws:
Exception
-
initPasswordStore
- Throws:
Exception
-
testLDAPConnections
- Throws:
Exception
-
testLDAPConnection
-
initSecurityProvider
public void initSecurityProvider() -
initDatabase
- Throws:
Exception
-
initPluginRegistry
- Throws:
Exception
-
initAuditor
- Throws:
Exception
-
initLogSubsystem
- Throws:
Exception
-
initClientSocketListener
public void initClientSocketListener() -
initServerSocketListener
public void initServerSocketListener() -
initJssSubsystem
- Throws:
Exception
-
initDBSubsystem
- Throws:
Exception
-
initUGSubsystem
- Throws:
Exception
-
initOIDLoaderSubsystem
- Throws:
Exception
-
initX500NameSubsystem
- Throws:
Exception
-
initRequestSubsystem
- Throws:
Exception
-
initAuthSubsystem
- Throws:
Exception
-
initAuthzSubsystem
- Throws:
Exception
-
initCMSGateway
- Throws:
Exception
-
initJobsScheduler
- Throws:
Exception
-
configurePorts
- Throws:
Exception
-
initSecurityDomain
- Throws:
Exception
-
init
initialize all static, dynamic and final static subsystems.- Throws:
Exception- if any error occur in subsystems during initialization.
-
loadConfigStore
- Throws:
EBaseException
-
isPreOpMode
public boolean isPreOpMode() -
isRunningMode
public boolean isRunningMode() -
setCSState
public void setCSState(int mode) -
getCSState
public int getCSState() -
getSecurityDomainSessionTable
-
getEENonSSLPort
-
getEESSLPort
-
getEEClientAuthSSLPort
-
getAgentPort
-
getAdminPort
-
getSubsystems
-
getSubsystem
-
setSubsystemEnabled
-
loadSubsystems
load subsystems- Throws:
Exception
-
initSubsystem
- Throws:
Exception
-
initSubsystems
- Throws:
Exception
-
configureAutoShutdown
- Throws:
Exception
-
configureServerCertNickname
- Throws:
EBaseException
-
checkForAndAutoShutdown
public void checkForAndAutoShutdown()sign some known data to determine if signing key is botched; if so, proceed to graceful shutdown -
recoverRequestQueue
public void recoverRequestQueue()Resends requests New non-blocking recover method. -
startupSubsystems
- Throws:
Exception
-
notifySubsystemStarted
public void notifySubsystemStarted() -
start
- Throws:
Exception
-
isInRunningState
public boolean isInRunningState() -
getServerCertNickname
-
setServerCertNickname
-
setServerCertNickname
-
getMailNotification
-
getPasswordChecker
-
disableRequests
public void disableRequests() -
areRequestsDisabled
public boolean areRequestsDisabled() -
terminateRequests
public void terminateRequests() -
isNT
public static boolean isNT() -
shutdownJobsScheduler
public void shutdownJobsScheduler() -
shutdownAuthzSubsystem
public void shutdownAuthzSubsystem() -
shutdownAuthSubsystem
public void shutdownAuthSubsystem() -
shutdownRequestSubsystem
public void shutdownRequestSubsystem() -
shutdownX500NameSubsystem
public void shutdownX500NameSubsystem() -
shutdownOIDLoaderSubsystem
public void shutdownOIDLoaderSubsystem() -
shutdownUGSubsystem
public void shutdownUGSubsystem() -
shutdownDBSubsystem
public void shutdownDBSubsystem() -
shutdownJSSSubsystem
public void shutdownJSSSubsystem() -
shutdownLogSubsystem
public void shutdownLogSubsystem() -
shutdownDatabase
public void shutdownDatabase() -
shutdownPluginRegistry
public void shutdownPluginRegistry() -
shutdown
public void shutdown()Shuts down subsystems in backwards order exceptions are ignored. process exists at end to force exit. -
forceShutdown
public void forceShutdown()Shuts down subsystems in backwards order exceptions are ignored. process exists at end to force exit. Added extra call to shutdown the web server. -
autoShutdown
public void autoShutdown() -
autoShutdown
public void autoShutdown(boolean restart) -
disableSubsystem
public void disableSubsystem() -
shutdownSubsystems
protected void shutdownSubsystems() -
getConfigStore
returns the main config store -
getConfig
-
getServerXml
-
getStartupTime
public long getStartupTime()get time server started up -
putPasswordCache
-
getPID
public int getPID() -
setListOfVerifiedCerts
public void setListOfVerifiedCerts(int size, long interval, long unknownStateInterval) -
isRevoked
-
isReady
public boolean isReady() -
sleepOneMinute
public void sleepOneMinute() -
verifySystemCerts
Go through all system certs and check to see if they are good and audit the result. Optionally only check certs validity.- Throws:
Exception- if something is wrong
-
verifySystemCertByTag
Verify a certificate by its tag name, do a full verification.- Throws:
Exception- if something is wrong
-
verifySystemCertByTag
Verify a certificate by its tag name. Perform optional validity check only.- Throws:
Exception- if something is wrong
-