public class Main extends Object
This user-interface is quite unfinished.
Constructor | Description |
---|---|
Main() |
Modifier and Type | Method | Description |
---|---|---|
protected static void |
actionGet(org.apache.commons.cli.CommandLine line) |
get a certificate from its online source after signing
|
protected static void |
actionHelp(org.apache.commons.cli.CommandLine line) |
show help.
|
protected static void |
actionImport(org.apache.commons.cli.CommandLine line) |
import a certificate into the certificate store
|
protected static void |
actionList(org.apache.commons.cli.CommandLine line) |
print list of certificates
|
protected static void |
actionPrint(org.apache.commons.cli.CommandLine line) |
print a certificate
|
protected static CertificatePair |
getCertificate(org.apache.commons.cli.CommandLine line) |
Return a certificate as specified on the command-line
|
protected static org.apache.commons.cli.Options |
getCLIOptions() |
return the command-line Options for this utility
|
static void |
main(String[] args) |
command-line interface entry point
|
protected static org.apache.commons.cli.CommandLine |
parseCLIOptions(String[] args) |
parse the command-line options and handle debugging level
|
public static void main(String[] args)
protected static org.apache.commons.cli.CommandLine parseCLIOptions(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
protected static org.apache.commons.cli.Options getCLIOptions()
protected static void actionHelp(org.apache.commons.cli.CommandLine line) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
protected static void actionList(org.apache.commons.cli.CommandLine line) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
protected static void actionImport(org.apache.commons.cli.CommandLine line) throws org.apache.commons.cli.ParseException, NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException, NoSuchProviderException, CertificateException, IOException, PasswordCancelledException
org.apache.commons.cli.ParseException
NoSuchAlgorithmException
UnrecoverableKeyException
KeyStoreException
NoSuchProviderException
CertificateException
IOException
PasswordCancelledException
protected static void actionPrint(org.apache.commons.cli.CommandLine line) throws org.apache.commons.cli.ParseException, IOException
org.apache.commons.cli.ParseException
IOException
protected static void actionGet(org.apache.commons.cli.CommandLine line) throws org.apache.commons.cli.ParseException, KeyManagementException, NoSuchAlgorithmException, IOException, CertificateCheck.CertificateCheckException, Exception
org.apache.commons.cli.ParseException
KeyManagementException
NoSuchAlgorithmException
IOException
CertificateCheck.CertificateCheckException
Exception
protected static CertificatePair getCertificate(org.apache.commons.cli.CommandLine line) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
Copyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.