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 PGPURL
-   The URL defined to indentify the PGP certificate format.
  
-   X509URL X509URL
-   The URL defined to indentify the X.509 certificate format.
   
  -   addFormat(String, Class) addFormat(String, Class)
-   Add a new certificate format, identified via name, implemented by the
 class clazz.
  
-   formats() formats()
-   Return an enumeration with the URL names of the currently
 installed certificate formats.
  
-   getImplementor(String) getImplementor(String)
-   Return the Class object of the class implementing the certificate
 format name.
  
-   getInstance(String) getInstance(String)
-   Get an instance of a class implementing the certificate format name.
  
-   isInstalled(String) isInstalled(String)
-   Find out if the specified certificate format is installed in the
 registry.
  
-   printFormats() printFormats()
-   Print the list of currently installed certificate formats and the
 names of the classes that implement them on stdout.
  
-   removeFormat(String) removeFormat(String)
-   Remove the named certificate format from the registry.
  
-   size() size()
-   Return the number of installed certificate formats.
   
 X509URL
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
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
size
 public static int size()
  -  Return the number of installed certificate formats.
 
 formats
formats
 public static Enumeration formats()
  -  Return an enumeration with the URL names of the currently
 installed certificate formats.
 
 printFormats
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
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
isInstalled
 public static boolean isInstalled(String name)
  -  Find out if the specified certificate format is installed in the
 registry.
 
 removeFormat
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
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
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