rice.post.security.ca
Class CACertificateGenerator
java.lang.Object
rice.post.security.ca.CACertificateGenerator
-
public class CACertificateGenerator
- extends java.lang.Object
This class starts generates a new certificate for the given username using
the provided CA keypair.
- Version:
- $Id: CACertificateGenerator.java 2771 2005-09-20 20:30:42Z jstewart $
- Author:
- amislove
Method Summary |
static java.lang.String |
getArg(java.lang.String[] args,
java.lang.String argType)
|
static boolean |
getFlagArg(java.lang.String[] args,
java.lang.String argType)
|
static void |
main(java.lang.String[] args)
The main program for the CertificateGenerator class |
static void |
print(boolean web,
java.lang.String string)
|
static void |
println(boolean web,
java.lang.String string)
|
static PostCertificate |
readCertificate(java.io.File file)
|
static java.security.KeyPair |
readKeyPair(java.io.File file,
java.lang.String password)
|
static void |
updateFile(java.io.File certificate,
java.io.File keypair,
java.io.File file)
|
static void |
write(PostCertificate cert,
java.security.KeyPair keypair,
java.lang.String password,
java.io.OutputStream os)
|
static void |
writeFile(PostCertificate cert,
java.security.KeyPair keypair,
java.lang.String password,
java.io.File file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
default_base_address
public static java.lang.String default_base_address
default_ring
public static java.lang.String default_ring
CACertificateGenerator
public CACertificateGenerator()
getArg
public static java.lang.String getArg(java.lang.String[] args,
java.lang.String argType)
-
getFlagArg
public static boolean getFlagArg(java.lang.String[] args,
java.lang.String argType)
-
print
public static void print(boolean web,
java.lang.String string)
-
println
public static void println(boolean web,
java.lang.String string)
-
main
public static void main(java.lang.String[] args)
- The main program for the CertificateGenerator class
-
- Parameters:
-
args
- The command line arguments
writeFile
public static void writeFile(PostCertificate cert,
java.security.KeyPair keypair,
java.lang.String password,
java.io.File file)
throws java.io.IOException
-
-
Throws:
java.io.IOException
write
public static void write(PostCertificate cert,
java.security.KeyPair keypair,
java.lang.String password,
java.io.OutputStream os)
throws java.io.IOException
-
-
Throws:
java.io.IOException
readCertificate
public static PostCertificate readCertificate(java.io.File file)
throws java.io.IOException,
java.lang.ClassNotFoundException
-
-
Throws:
-
java.io.IOException
java.lang.ClassNotFoundException
readKeyPair
public static java.security.KeyPair readKeyPair(java.io.File file,
java.lang.String password)
throws java.io.IOException,
java.lang.SecurityException,
java.lang.ClassNotFoundException
-
-
Throws:
-
java.io.IOException
-
java.lang.SecurityException
java.lang.ClassNotFoundException
updateFile
public static void updateFile(java.io.File certificate,
java.io.File keypair,
java.io.File file)
throws java.io.IOException,
java.lang.ClassNotFoundException
-
-
Throws:
-
java.io.IOException
java.lang.ClassNotFoundException
Copyright © 2001-2005 - Rice Pastry.