org.keycloak.util

## Class CertificateUtils

- java.lang.Object
- - org.keycloak.util.CertificateUtils

-     public class CertificateUtils
      extends Object

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CertificateUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static X509Certificate` | `generateV1SelfSignedCertificate(KeyPair keyPair, String subject)`
    `static X509Certificate` | `generateV3Certificate(KeyPair keyPair, PrivateKey caPrivateKey, X509Certificate caCert, String subject)`

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

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

- - ### Constructor Detail

    - #### CertificateUtils

          public CertificateUtils()

  - ### Method Detail

    - #### generateV3Certificate

          public static X509Certificate generateV3Certificate(KeyPair keyPair,
                                              PrivateKey caPrivateKey,
                                              X509Certificate caCert,
                                              String subject)
                                                       throws Exception

      Throws:
        `Exception`

    - #### generateV1SelfSignedCertificate

          public static X509Certificate generateV1SelfSignedCertificate(KeyPair keyPair,
                                                        String subject)
                                                                 throws Exception

      Throws:
        `Exception`

Copyright © 2015. All Rights Reserved.