SignCert is a utility class used by the AppDescriptor Class to
modify a self-signed certificate in a KeyStore. These methods
do not modify an AppDescriptor at all, but only modify the contents
of a Java KeyStore.
Given the alias of a self-signed certificate and the alias of
a "signing" certificate...the alias of another certificate that
is paired with a private key...the static method
SignACert will replace the self-signed certificate
with the same certificate signed by the owner of the "signing"
certificate.
PORTABILITY WARNING!
--------------------
This class uses Sun implementation specific classes in the
sun.security.x509.* namespace imported here. This
is NOT portable to Java runtime environments provided by other
vendors. It may not even be supported in future releases
of the Sun JDK. This code works under Sun's JDK1.3.
We were forced to use Sun's X509 certificate implementation classes
directly because the public X509 certificate methods in
java.security.cert.* do not provide ways to
programmatically modify fields within a X509 certificate object.
For more information about the sun.* classes, see:
http://java.sun.com/products/jdk/faq/faq-sun-packages.html
|