com.deltavsoft.rcfproto

## Class PfxCertificate

- java.lang.Object
- - com.deltavsoft.rcfproto.Certificate
  - - com.deltavsoft.rcfproto.Win32Certificate
    - - com.deltavsoft.rcfproto.PfxCertificate

-     public class PfxCertificate
      extends Win32Certificate

  Use this class to load a certificate from .pfx format. Only applicable to Schannel.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PfxCertificate(java.lang.String pathToCert, java.lang.String password, java.lang.String certName)` Loads a certificate from a .pfx file, using the given file path, password and certificate name.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addToStore(Win32CertificateLocation certStoreLocation, Win32CertificateStore certStore)` Adds the certificate to the given Windows certificate store.
    `void` | `delete()`
    `protected void` | `finalize()`
    `protected static long` | `getCPtr(PfxCertificate obj)`

    - ### Methods inherited from class com.deltavsoft.rcfproto.Win32Certificate

      `exportToPfx, findRootCertificate, getCertificateName, getCPtr, getIssuerName`

    - ### Methods inherited from class com.deltavsoft.rcfproto.Certificate

      `getCPtr`

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

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

- - ### Constructor Detail

    - #### PfxCertificate

          public PfxCertificate(java.lang.String pathToCert,
                        java.lang.String password,
                        java.lang.String certName)

      Loads a certificate from a .pfx file, using the given file path, password and certificate name.

  - ### Method Detail

    - #### getCPtr

          protected static long getCPtr(PfxCertificate obj)

    - #### finalize

          protected void finalize()

      Overrides:
        `finalize` in class `Win32Certificate`

    - #### delete

          public void delete()

      Overrides:
        `delete` in class `Win32Certificate`

    - #### addToStore

          public void addToStore(Win32CertificateLocation certStoreLocation,
                        Win32CertificateStore certStore)

      Adds the certificate to the given Windows certificate store.