Package hudson.cli
Class CLI
- java.lang.Object
-
- hudson.cli.CLI
-
public class CLI extends Object
CLI entry point to Jenkins.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int_main(String[] _args)static KeyPairloadKey(File f)static KeyPairloadKey(File f, String passwd)Loads RSA/DSA private key in a PEM format intoKeyPair.static KeyPairloadKey(String pemString)static KeyPairloadKey(String pemString, String passwd)Loads RSA/DSA private key in a PEM format intoKeyPair.static voidmain(String[] _args)
-
-
-
Method Detail
-
loadKey
public static KeyPair loadKey(File f, String passwd) throws IOException, GeneralSecurityException
Loads RSA/DSA private key in a PEM format intoKeyPair.- Throws:
IOExceptionGeneralSecurityException
-
loadKey
public static KeyPair loadKey(File f) throws IOException, GeneralSecurityException
- Throws:
IOExceptionGeneralSecurityException
-
loadKey
public static KeyPair loadKey(String pemString, String passwd) throws IOException, GeneralSecurityException
Loads RSA/DSA private key in a PEM format intoKeyPair.- Throws:
IOExceptionGeneralSecurityException
-
loadKey
public static KeyPair loadKey(String pemString) throws IOException, GeneralSecurityException
- Throws:
IOExceptionGeneralSecurityException
-
-