org.faceless.pdf2.viewer2.util

## Class X509Util

- java.lang.Object
- - org.faceless.pdf2.viewer2.util.X509Util

-     public final class X509Util
      extends Object

  This class contains one method used by the KeyStoreManager class to create new X.509 Certificates. It accesses the `sun.security.x509` package, which isn't allowed in an untrusted environment, so it's in a separate class so we can fail gracefully.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `X509Util()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `X509Certificate` | `generateCertificate(String dn, KeyPair pair, int days, String algorithm)` Create an X.509 Certificate - calls into the sun.security.x509 package

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### X509Util

          public X509Util()

  - ### Method Detail

    - #### generateCertificate

          public X509Certificate generateCertificate(String dn,
                                                     KeyPair pair,
                                                     int days,
                                                     String algorithm)
                                              throws GeneralSecurityException

      Create an X.509 Certificate - calls into the sun.security.x509 package
      Throws:
        `GeneralSecurityException`

Copyright © 2001-2015 Big Faceless Organization