org.nhindirect.config.manager
Class CertCommands

java.lang.Object
  extended by org.nhindirect.config.manager.CertCommands

public class CertCommands
extends Object


Field Summary
protected  RecordPrinter<org.nhind.config.Certificate> certPrinter
           
protected  org.nhind.config.ConfigurationServiceProxy proxy
           
 
Constructor Summary
CertCommands(org.nhind.config.ConfigurationServiceProxy proxy)
           
 
Method Summary
 void addIPKIXCert(String[] args)
           
 void exportCertByAddress(String[] args)
           
 void importPrivateCert(String[] args)
           
 void importPublicCert(String[] args)
           
 void listCerts(String[] args)
           
 void listCertsByAddress(String[] args)
           
 void removeCert(String[] args)
           
 void setConfigurationProxy(org.nhind.config.ConfigurationServiceProxy proxy)
           
 void setRecordPrinter(RecordPrinter<org.nhind.config.Certificate> printer)
           
protected  void writeCertsToFiles(org.nhind.config.Certificate[] certs)
           
static byte[] x509CertificateToBytes(X509Certificate cert)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxy

protected org.nhind.config.ConfigurationServiceProxy proxy

certPrinter

protected RecordPrinter<org.nhind.config.Certificate> certPrinter
Constructor Detail

CertCommands

public CertCommands(org.nhind.config.ConfigurationServiceProxy proxy)
Method Detail

listCerts

public void listCerts(String[] args)

listCertsByAddress

public void listCertsByAddress(String[] args)

exportCertByAddress

public void exportCertByAddress(String[] args)

importPublicCert

public void importPublicCert(String[] args)

importPrivateCert

public void importPrivateCert(String[] args)

addIPKIXCert

public void addIPKIXCert(String[] args)

removeCert

public void removeCert(String[] args)

setRecordPrinter

public void setRecordPrinter(RecordPrinter<org.nhind.config.Certificate> printer)

setConfigurationProxy

public void setConfigurationProxy(org.nhind.config.ConfigurationServiceProxy proxy)

writeCertsToFiles

protected void writeCertsToFiles(org.nhind.config.Certificate[] certs)
                          throws IOException
Throws:
IOException

x509CertificateToBytes

public static byte[] x509CertificateToBytes(X509Certificate cert)


Copyright © 2015. All Rights Reserved.