public class EdalHelpers extends Object
| Constructor and Description |
|---|
EdalHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static Subject |
authenticateElixirUser(String httpProxyHost,
int httpProxyPort)
Authenticate user using the
GoogleLoginModule. |
static Subject |
authenticateGoogleUser()
Authenticate user using the
GoogleLoginModule. |
static Subject |
authenticateGoogleUser(String httpProxyHost,
int httpProxyPort)
Authenticate user using the
GoogleLoginModule. |
static Subject |
authenticateIPKKerberosUser(String user)
Authenticate user using the IPK Kerberos-LoginModule.
|
static Subject |
authenticateORCIDUser(String httpProxyHost,
int httpProxyPort)
Authenticate user using the
ORCIDLoginModule. |
static Subject |
authenticateSampleUser()
Authenticate user using the
SampleUserLoginModule
-LoginModule. |
static Subject |
authenticateSubjectWithKerberos(String kerberosRealm,
String kerberosKDC,
String user)
Authenticate user using the specified Kerberos-LoginModule.
|
static Subject |
authenticateUser(String name,
String password)
Authenticate user using the
UserLoginModule
-LoginModule. |
static Subject |
authenticateWinOrUnixOrMacUser()
Authenticate user using the Windows- or Unix- or MAC-LoginModule.
|
static ImplementationProvider |
getFileSystemImplementationProvider(boolean cleanMountPathBefore,
EdalConfiguration config)
Get a new
FileSystemImplementationProvider. |
static void |
getSearchStatistic(org.hibernate.stat.Statistics statistics)
Print SearchStatistic.
|
static void |
getStatistic(org.hibernate.stat.Statistics statistics)
Print PermissionStatistic.
|
public static Subject authenticateGoogleUser() throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
GoogleLoginModule.Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateORCIDUser(String httpProxyHost, int httpProxyPort) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
ORCIDLoginModule.httpProxyHost - the address of the HTTP proxy hosthttpProxyPort - the address of the HTTP proxy portSubjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateElixirUser(String httpProxyHost, int httpProxyPort) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
GoogleLoginModule.httpProxyHost - the address of the HTTP proxy hosthttpProxyPort - the address of the HTTP proxy portSubjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateGoogleUser(String httpProxyHost, int httpProxyPort) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
GoogleLoginModule.httpProxyHost - the address of the HTTP proxy hosthttpProxyPort - the address of the HTTP proxy portSubjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateIPKKerberosUser(String user) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
user - user name.Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateUser(String name, String password) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
UserLoginModule
-LoginModule.name - the user name to authenticatepassword - the password of the user to authenticateSubjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateSampleUser() throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
SampleUserLoginModule
-LoginModule.Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateSubjectWithKerberos(String kerberosRealm, String kerberosKDC, String user) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
kerberosRealm - the Kerberos realmkerberosKDC - the Kerberos KDCuser - optional usernameSubjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateWinOrUnixOrMacUser() throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if the authentication failedpublic static ImplementationProvider getFileSystemImplementationProvider(boolean cleanMountPathBefore, EdalConfiguration config) throws EdalException
FileSystemImplementationProvider. The path to use for
file storage and database is set to users home/edal_testcleanMountPathBefore - true if you want to clean the database before start eDAL.config - the EdalConfiguration class.FileSystemImplementationProviderEdalException - if unable to clean mount path or create new mount path.public static void getSearchStatistic(org.hibernate.stat.Statistics statistics)
statistics - the Statistics to get informationpublic static void getStatistic(org.hibernate.stat.Statistics statistics)
statistics - the Statistics to get informationCopyright © 2017 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.