Class CMSEngine
java.lang.Object
com.netscape.cmscore.apps.CMSEngine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.mozilla.jss.ssl.SSLCertificateApprovalCallbackprotected Auditorprotected AuthSubsystemprotected AuthzSubsystemprotected PKIClientSocketListenerprotected EngineConfigprotected DBSubsystemprotected CMSGatewayprotected JobsSchedulerprotected JssSubsystemstatic org.slf4j.Loggerprotected LogSubsystemprotected EngineConfigprotected OidLoaderSubsystemprotected RequestNotifierprotected RequestNotifierprotected RequestQueueprotected RequestRepositoryprotected RequestSubsystemprotected ServerConfigprotected PKIServerSocketListenerfinal Map<String, SubsystemInfoConfig> 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) createLdapAnonConnFactory(String id, int minConns, int maxConns, LdapConnInfo connInfo) createLdapAnonConnFactory(String id, LDAPConfig ldapConfig) createLdapBoundConnFactory(String id, int minConns, int maxConns, LdapConnInfo connInfo, LdapAuthInfo authInfo) createLdapBoundConnFactory(String id, LDAPConfig ldapConfig) createSubsystem(SubsystemInfoConfig subsystemInfoConfig) voidvoidvoidShuts down subsystems in backwards order exceptions are ignored.org.mozilla.jss.ssl.SSLCertificateApprovalCallbackgetAuditGroups(String subjectID) Get signed audit groups This method is called to extract all groups associated with the audit subject ID.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.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidvoidvoidinitSubsystem(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.voidsetApprovalCallback(org.mozilla.jss.ssl.SSLCertificateApprovalCallback approvalCallback) 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) voidshutdown()Shuts down subsystems in backwards order exceptions are ignored.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidvoidvoidvoidvoidstart()protected voidvoidinttestLDAPConnection(String name, LDAPConnectionConfig connConfig, 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
-
serverConfig
-
auditor
-
logSubsystem
-
clientSocketListener
-
serverSocketListener
-
jssSubsystem
-
dbSubsystem
-
requestRepository
-
requestQueue
-
ugSubsystem
-
oidLoaderSubsystem
-
x500NameSubsystem
-
requestSubsystem
-
authSubsystem
-
authzSubsystem
-
gateway
-
jobsScheduler
-
subsystemInfos
-
subsystems
-
unsecurePort
-
securePort
-
requestNotifier
-
pendingNotifier
-
approvalCallback
protected org.mozilla.jss.ssl.SSLCertificateApprovalCallback approvalCallback -
mVCList
-
-
Constructor Details
-
CMSEngine
-
-
Method Details
-
getApprovalCallback
public org.mozilla.jss.ssl.SSLCertificateApprovalCallback getApprovalCallback() -
setApprovalCallback
public void setApprovalCallback(org.mozilla.jss.ssl.SSLCertificateApprovalCallback approvalCallback) -
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
-
createConfig
- Throws:
Exception
-
getPasswordStore
- Throws:
EBaseException
-
initDebug
-
initSubsystemListeners
-
initPasswordStore
-
testLDAPConnections
-
testLDAPConnection
public int testLDAPConnection(String name, LDAPConnectionConfig connConfig, String binddn, String pwd) throws EBaseException - Throws:
EBaseException
-
initSecurityProvider
public void initSecurityProvider() -
initDatabase
-
initPluginRegistry
-
initAuditor
-
initLogSubsystem
-
initClientSocketListener
public void initClientSocketListener() -
initServerSocketListener
public void initServerSocketListener() -
initJssSubsystem
-
initDBSubsystem
-
initUGSubsystem
-
initOIDLoaderSubsystem
-
initX500NameSubsystem
-
initRequestSubsystem
-
initAuthSubsystem
-
initAuthzSubsystem
-
initCMSGateway
-
initJobsScheduler
-
configurePorts
-
initSecurityDomain
-
init
-
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
-
loadSubsystems
-
createSubsystem
- Throws:
Exception
-
initSubsystem
- Throws:
Exception
-
initSubsystems
-
configureAutoShutdown
-
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
-
notifySubsystemStarted
public void notifySubsystemStarted() -
start
-
initSequence
-
isInRunningState
public boolean isInRunningState() -
getServerCertNickname
-
setServerCertNickname
-
setServerCertNickname
-
createLdapAnonConnFactory
public LdapAnonConnFactory createLdapAnonConnFactory(String id, LDAPConfig ldapConfig) throws EBaseException - Throws:
EBaseException
-
createLdapAnonConnFactory
public LdapAnonConnFactory createLdapAnonConnFactory(String id, int minConns, int maxConns, LdapConnInfo connInfo) throws EBaseException - Throws:
EBaseException
-
createLdapBoundConnFactory
public LdapBoundConnFactory createLdapBoundConnFactory(String id, LDAPConfig ldapConfig) throws EBaseException - Throws:
EBaseException
-
createLdapBoundConnFactory
public LdapBoundConnFactory createLdapBoundConnFactory(String id, int minConns, int maxConns, LdapConnInfo connInfo, LdapAuthInfo authInfo) throws EBaseException - Throws:
EBaseException
-
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
-
getServerConfig
-
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
-
verifySystemCertByTag
-
verifySystemCertByTag
-
getAuditGroups
-