net.sf.bse
Class Command
java.lang.Object
net.sf.bse.Command
- Direct Known Subclasses:
- GenerateLeafRequest, GenerateRootCertificate, SignLeafCertificate, SignXlet
- public abstract class Command
- extends java.lang.Object
Abstract class representing a command.
- Version:
- $Revision: 1.1 $ $Date: 2003/01/17 14:40:16 $
- Author:
- Bill Foote (bill.foote@sun.com)
Constructor Summary |
protected |
Command(java.util.Map arguments)
|
Method Summary |
protected java.lang.String |
getArg(java.lang.String key)
|
protected java.util.Date |
getDateArg(java.lang.String key)
|
abstract java.lang.String[] |
getOptionalArgs()
|
abstract java.lang.String[] |
getRequiredArgs()
|
protected byte[] |
readBytesFromFile(java.lang.String fn)
|
protected org.bouncycastle.jce.provider.X509CertificateObject |
readX509(java.io.ByteArrayInputStream bis)
|
abstract void |
run()
Execute this command. |
abstract void |
usageMessage(java.io.PrintStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Command
protected Command(java.util.Map arguments)
getArg
protected java.lang.String getArg(java.lang.String key)
- Returns:
- the given argument, or null if it's not there
getDateArg
protected java.util.Date getDateArg(java.lang.String key)
readBytesFromFile
protected byte[] readBytesFromFile(java.lang.String fn)
throws java.io.IOException
- Throws:
java.io.IOException
readX509
protected org.bouncycastle.jce.provider.X509CertificateObject readX509(java.io.ByteArrayInputStream bis)
throws java.lang.Exception
- Throws:
java.lang.Exception
usageMessage
public abstract void usageMessage(java.io.PrintStream out)
getRequiredArgs
public abstract java.lang.String[] getRequiredArgs()
getOptionalArgs
public abstract java.lang.String[] getOptionalArgs()
run
public abstract void run()
throws java.lang.Exception
- Execute this command.
- Throws:
java.lang.Exception
Copyright © 2002-2004 BSE Project. All Rights Reserved.