|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.client.swing.KrbConfigHelpers
public class KrbConfigHelpers
| Constructor Summary | |
|---|---|
KrbConfigHelpers()
Creates a new instance of KrbConfigHelpers |
|
| Method Summary | |
|---|---|
static void |
createKer5login(String cltConfigFolderPath,
String cltConfigFolderName,
String entryName,
String useCache,
String useTicketCache,
String ticketCacheFile)
create a ker5login.conf file |
static void |
createKerberosProperties(String cltConfigFolderPath,
String cltConfigFolderName,
String krbIni,
String stsUrl,
String srvPrincipal,
String srvPricipalName,
String krb5LoginEntry)
create a kerberos.properties file |
static void |
createKrbConfigs(String parentConfFolder,
String folderName,
String krb5loginEntry,
String stsUrl,
String srvPrincipal,
String srvPrincipalName,
String winKrbIni,
String tCache)
create a set of kerberos config files: kerberos.properties, ker5login.conf, wsdd file, session key keystore and crypto file |
static void |
createKrbCrypto(String cltConfigFolderPath,
String cltConfigFolderName)
create a krb.crypto file to store the session key in a krb.sessionkey.ks keystore |
static void |
createWSDDFile(String cltConfigFolderPath,
String cltConfigFolderName)
create a wsdd file for the client to connect to the STS |
static String |
getKrbIni(String folder)
gets the krb5.ini path from the configurations in folder |
static String |
getStsPrincipal(String folder)
gets the sts principal from the configurations in folder |
static String |
getStsPrincipalName(String folder)
gets the sts principal name from the configurations in folder |
static String |
getStsTicketCache(String folder)
gets the kerberos ticketcache location from the configurations in folder |
static String |
getStsUrl(String folder)
gets the sts service url from the configurations in folder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KrbConfigHelpers()
| Method Detail |
|---|
public static String getStsUrl(String folder)
folder - the name of the folder in the classpath
public static String getStsPrincipal(String folder)
folder - the name of the folder in the classpath
public static String getStsPrincipalName(String folder)
folder - the name of the folder in the classpath
public static String getKrbIni(String folder)
folder - the name of the folder in the classpath
public static String getStsTicketCache(String folder)
folder - the name of the folder in the classpath
public static void createKrbConfigs(String parentConfFolder,
String folderName,
String krb5loginEntry,
String stsUrl,
String srvPrincipal,
String srvPrincipalName,
String winKrbIni,
String tCache)
parentConfFolder - the name of the folder in the classpathfolderName - a folder to be created in parentConfFolder to store the config fileskrb5loginEntry - the jaas configuration entry name in krb5login.confstsUrl - kerberos sts urlsrvPrincipal - the service principalsrvPrincipalName - the sts principal namewinKrbIni - the krb5.ini or krb5.conf file locationtCache - ticket cache location
public static void createKerberosProperties(String cltConfigFolderPath,
String cltConfigFolderName,
String krbIni,
String stsUrl,
String srvPrincipal,
String srvPricipalName,
String krb5LoginEntry)
cltConfigFolderPath - the name of the folder in the classpathcltConfigFolderName - a folder to be created in parentConfFolder to store the config fileskrbIni - the krb5.ini or krb5.conf file locationstsUrl - kerberos sts urlsrvPrincipal - the service principalsrvPricipalName - the sts principal namekrb5LoginEntry - the jaas configuration entry name in ker5login.conf
public static void createKer5login(String cltConfigFolderPath,
String cltConfigFolderName,
String entryName,
String useCache,
String useTicketCache,
String ticketCacheFile)
cltConfigFolderPath - the name of the folder in the classpathcltConfigFolderName - a folder to be created in parentConfFolder to store the config filesentryName - the jaas configuration entry nameuseCache - the value of useCache entry: true or falseuseTicketCache - the value of useTicketCache entry: true or falseticketCacheFile - ticket cache location
public static void createKrbCrypto(String cltConfigFolderPath,
String cltConfigFolderName)
cltConfigFolderPath - the name of the folder in the classpathcltConfigFolderName - a folder to be created in parentConfFolder to store the config files
public static void createWSDDFile(String cltConfigFolderPath,
String cltConfigFolderName)
cltConfigFolderPath - the name of the folder in the classpathcltConfigFolderName - a folder to be created in parentConfFolder to store the config files
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||