All Packages Class Hierarchy This Package Previous Next Index
Class w3c.www.dsig.CertFormatRegistry
java.lang.Object
|
+----w3c.www.dsig.CertFormatRegistry
- public final class CertFormatRegistry
- extends Object
The CertFormatRegistry class maintains a database of the certificate
formats installed on the system.
Classes implementing a certificate format follow the standard
java.security.Certificate API.
-
PGPURL
- The URL defined to indentify the PGP certificate format.
-
X509URL
- The URL defined to indentify the X.509 certificate format.
-
addFormat(String, Class)
- Add a new certificate format, identified via name, implemented by the
class clazz.
-
formats()
- Return an enumeration with the URL names of the currently
installed certificate formats.
-
getImplementor(String)
- Return the Class object of the class implementing the certificate
format name.
-
getInstance(String)
- Get an instance of a class implementing the certificate format name.
-
isInstalled(String)
- Find out if the specified certificate format is installed in the
registry.
-
printFormats()
- Print the list of currently installed certificate formats and the
names of the classes that implement them on stdout.
-
removeFormat(String)
- Remove the named certificate format from the registry.
-
size()
- Return the number of installed certificate formats.
X509URL
public static final String X509URL
- The URL defined to indentify the X.509 certificate format.
Currently this is http://www.w3.org/PICS/DSig/X509-1_0.html,
but note that this might change in the future as this variable will
always hold the URL of the latest version of the DSig X.509
specification!
PGPURL
public static final String PGPURL
- The URL defined to indentify the PGP certificate format.
Currently this is http://www.w3.org/PICS/DSig/pgpcert-1_0.html,
but note that this might change in the future as this variable will
always hold the URL of the latest version of the DSig PGP
specification!
size
public static int size()
- Return the number of installed certificate formats.
formats
public static Enumeration formats()
- Return an enumeration with the URL names of the currently
installed certificate formats.
printFormats
public static void printFormats()
- Print the list of currently installed certificate formats and the
names of the classes that implement them on stdout.
addFormat
public static boolean addFormat(String name,
Class clazz)
- Add a new certificate format, identified via name, implemented by the
class clazz. The class represented by clazz must implement
the java.security.Certificate interface.
Returns true is successful, false otherwise (algorithm already present)
isInstalled
public static boolean isInstalled(String name)
- Find out if the specified certificate format is installed in the
registry.
removeFormat
public static boolean removeFormat(String name)
- Remove the named certificate format from the registry.
Returns true if successful, false if the algorithm was not installed.
getInstance
public static Certificate getInstance(String name) throws NoSuchAlgorithmException
- Get an instance of a class implementing the certificate format name.
Name is the URL identifying the algorithm.
- Throws: NoSuchAlgorithmException
- if the format is not installed.
getImplementor
public static Class getImplementor(String name) throws NoSuchAlgorithmException
- Return the Class object of the class implementing the certificate
format name.
- Throws: NoSuchAlgorithmException
- if the format is not installed.
All Packages Class Hierarchy This Package Previous Next Index