36 lines
735 B
Java
36 lines
735 B
Java
package org.gcube.application.framework.core.security;
|
|
|
|
import java.io.File;
|
|
|
|
import org.gcube.application.framework.core.util.Settings;
|
|
import org.gcube.vomanagement.vomsAdmin.impl.VOMSAdminImpl;
|
|
|
|
/**
|
|
* @author Valia Tsagkalidou (NKUA)
|
|
*
|
|
*/
|
|
public class VOMSAdminManager {
|
|
|
|
/**
|
|
*
|
|
*/
|
|
protected static VOMSAdminImpl vomsAdmin= null;
|
|
|
|
/**
|
|
* @return
|
|
*/
|
|
public static VOMSAdminImpl getVOMSAdmin()
|
|
{
|
|
if(vomsAdmin == null)
|
|
{
|
|
try {
|
|
vomsAdmin = new VOMSAdminImpl(Settings.getInstance().getProperty("sharedDir")+ File.separator + "vomsAPI.properties");
|
|
} catch (Exception e) {
|
|
// TODO Auto-generated catch block
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
return vomsAdmin;
|
|
}
|
|
}
|