Class WebSecurityManager

java.lang.Object
com.mapr.web.security.WebSecurityManager

public final class WebSecurityManager extends Object
  • Constructor Details

    • WebSecurityManager

      public WebSecurityManager()
  • Method Details

    • importUrlCertificate

      public boolean importUrlCertificate(String importUrl, String truststore)
    • getSecurityManager

      public static WebSecurityManager getSecurityManager(String processName)
    • getSslContextFactory

      public org.eclipse.jetty.util.ssl.SslContextFactory getSslContextFactory()
    • getServerSslContextFactory

      public org.eclipse.jetty.util.ssl.SslContextFactory.Server getServerSslContextFactory()
    • getSslConfig

      public static com.mapr.web.security.SslConfig getSslConfig() throws SecurityException
      Returns:
      Instance of SslConfig for the current MapR cluster with SslConfig.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 SslConfig for the current MapR cluster with the specified SslConfig.SslConfigScope.
      Throws:
      SecurityException - if the process doesn't have privilege or SSL is not configured.