Package com.mapr.web.security
Class WebSecurityManager
java.lang.Object
com.mapr.web.security.WebSecurityManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSecurityManagergetSecurityManager(String processName) org.eclipse.jetty.util.ssl.SslContextFactory.Serverstatic com.mapr.web.security.SslConfigstatic com.mapr.web.security.SslConfiggetSslConfig(com.mapr.web.security.SslConfig.SslConfigScope scope) org.eclipse.jetty.util.ssl.SslContextFactorybooleanimportUrlCertificate(String importUrl, String truststore)
-
Constructor Details
-
WebSecurityManager
public WebSecurityManager()
-
-
Method Details
-
importUrlCertificate
-
getSecurityManager
-
getSslContextFactory
public org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory() -
getServerSslContextFactory
public org.eclipse.jetty.util.ssl.SslContextFactory.Server getServerSslContextFactory() -
getSslConfig
- Returns:
- Instance of
SslConfigfor the current MapR cluster withSslConfig.SslConfigScope.SCOPE_ALL. - Throws:
SecurityException- if the process doesn't have privilege or SSL is not configured.
-
getSslConfig
public static com.mapr.web.security.SslConfig getSslConfig(com.mapr.web.security.SslConfig.SslConfigScope scope) throws SecurityException - Returns:
- Instance of
SslConfigfor the current MapR cluster with the specifiedSslConfig.SslConfigScope. - Throws:
SecurityException- if the process doesn't have privilege or SSL is not configured.
-