Package org.keycloak.util.ldap
Class KerberosKeytabCreator
- java.lang.Object
-
- org.keycloak.util.ldap.KerberosKeytabCreator
-
public class KerberosKeytabCreator extends Object
Helper utility for creating Keytab files.- Author:
- Josef Cacek
-
-
Constructor Summary
Constructors Constructor Description KerberosKeytabCreator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateKeytab(String principalName, String passPhrase, File keytabFile)Creates a keytab file for given principal.static voidexecute(String[] args, Properties defaultProperties)static voidmain(String[] args)The main.
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
The main.- Parameters:
args-- Throws:
IOException
-
execute
public static void execute(String[] args, Properties defaultProperties) throws Exception
- Throws:
Exception
-
createKeytab
public static void createKeytab(String principalName, String passPhrase, File keytabFile) throws IOException
Creates a keytab file for given principal.- Parameters:
principalName-passPhrase-keytabFile-- Throws:
IOException
-
-