All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.genexus.security.GXSecurityProvider Maven / Gradle / Ivy

Go to download

Core classes for the runtime used by Java and Android apps generated with GeneXus

There is a newer version: 4.7.3
Show newest version
package com.genexus.security;

import com.genexus.diagnostics.core.ILogger;
import com.genexus.diagnostics.core.LogManager;

public class GXSecurityProvider
{
	public static final ILogger logger = LogManager.getLogger(GXSecurityProvider.class);

	private static SecurityProvider instance = null;

	public static SecurityProvider getInstance()
	{
		if(instance == null)
		{
			try
			{
				Class c = Class.forName("genexus.security.GAMSecurityProvider");
				instance = (SecurityProvider)c.getDeclaredConstructor().newInstance();
			}
			catch(Exception e)
			{
				instance = new NoSecurityProvider();
				logger.error("GAMSecurityProvider class not found.");
			}
		}
		return instance;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy