Class Security

java.lang.Object
com.eka.middleware.auth.Security

public class Security extends Object
  • Field Details

    • defaultTenantPage

      public static final String defaultTenantPage
      See Also:
    • defaultLoginPage

      public static final String defaultLoginPage
      See Also:
    • defaultWelcomePage

      public static final String defaultWelcomePage
      See Also:
    • defaultWorkspacePage

      public static final String defaultWorkspacePage
      See Also:
    • defaultLoginPage_NonTenant

      public static final String defaultLoginPage_NonTenant
      See Also:
    • defaultLoginAction

      public static final String defaultLoginAction
      See Also:
    • loginExactPathsMap

      public static final Map<String,org.pac4j.core.config.Config> loginExactPathsMap
    • LOGGER

      public static org.apache.logging.log4j.Logger LOGGER
    • PRIVATE_PROPERTY_KEY_NAME

      public static String PRIVATE_PROPERTY_KEY_NAME
    • PUBLIC_PROPERTY_KEY_NAME

      public static String PUBLIC_PROPERTY_KEY_NAME
  • Constructor Details

    • Security

      public Security()
  • Method Details

    • getPath

      public static Set<String> getPath()
    • init

      public static io.undertow.server.handlers.PathHandler init() throws Exception
      Throws:
      Exception
    • generateKeyPair

      public static void generateKeyPair(String tenantName)
    • getSecureString

      public static String getSecureString(String data, String publicKey) throws Exception
      Throws:
      Exception
    • getNormalString

      public static String getNormalString(String secureString, String privateKey) throws Exception
      Throws:
      Exception
    • setupTenantSecurity

      public static void setupTenantSecurity(String tenantName)
    • addPublicPrefixPath

      public static void addPublicPrefixPath(String resourcePrefixPath, Tenant tenant)
    • addPublicExactPath

      public static void addPublicExactPath(String resourceExactPath, Tenant tenant)
    • addLoginExactPath

      public static void addLoginExactPath(Tenant tenant, String loginUrl)
    • isPublic

      public static boolean isPublic(String path, String tenantName)
    • addDefaultNewUserPath1

      public static void addDefaultNewUserPath1(String path, String tenantName)
    • removeDefaultNewUserPath

      public static void removeDefaultNewUserPath(String path, String tenantName)
    • gerDefaultNewUserPath

      public static String gerDefaultNewUserPath(String tenantName)
    • addExternalOIDCAuthorizationServer

      public static String addExternalOIDCAuthorizationServer(Map<String,Object> props, String resourcePath, DataPipeline dp) throws Exception
      Throws:
      Exception
    • getPublicPrefixPaths

      public static List<String> getPublicPrefixPaths(String tenantName)
    • getPublicExactPaths

      public static List<String> getPublicExactPaths(String tenantName)
    • removePath

      public static void removePath(String resourcePath) throws Exception
      Throws:
      Exception