at.gv.egovernment.moa.spss.server.tools
Class CertTool

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.tools.CertTool

public class CertTool
extends Object

A tool to support X509 certificate handling for configuring the MOA SP/SS service. This class provides functions for:

Version:
$Id$
Author:
Patrick Peck

Constructor Summary
CertTool()
           
 
Method Summary
 void addCertToCertStore(String certFile, String certStoreRoot)
          Add a certificate to a directory certificate store.
static void main(String[] args)
          Main entry point of the tool.
 void printCertInfo(String certFile, PrintStream out)
          Print the information about the certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertTool

public CertTool()
Method Detail

main

public static void main(String[] args)
Main entry point of the tool.
Parameters:
args - The command line arguments. A single argument is expected, which is the file name of the X509 certificate to inspect.

printCertInfo

public void printCertInfo(String certFile,
                          PrintStream out)
Print the information about the certificate. This method will output information about the Subject DN, the Issuer DN and the serial number of the certificate.
Parameters:
certFile - The name of the certificate file to inspect.
out - The stream to print the information to.

addCertToCertStore

public void addCertToCertStore(String certFile,
                               String certStoreRoot)
Add a certificate to a directory certificate store.
Parameters:
certFile - The certificate to add.
certStoreRoot - The root directory of the certificate store.