Class KeyProvider


  • public class KeyProvider
    extends java.lang.Object
    Author:
    matthias.unverzagt
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyProvider()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.cert.X509Certificate getCertificate2​(java.lang.String p12Password, java.lang.String p12Path)  
      static Identity getIdentity​(byte[] p12Bytes, java.lang.String p12Password, java.lang.String privateKeyPassword)  
      static Identity getIdentity​(java.lang.String p12Password, java.lang.String privateKeyPassword, java.lang.String p12Path)  
      static java.security.PrivateKey getPrivateKey2​(java.lang.String p12Password, java.lang.String privateKeyPassword, java.lang.String p12Path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyProvider

        public KeyProvider()
    • Method Detail

      • getCertificate2

        public static java.security.cert.X509Certificate getCertificate2​(java.lang.String p12Password,
                                                                         java.lang.String p12Path)
                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPrivateKey2

        public static java.security.PrivateKey getPrivateKey2​(java.lang.String p12Password,
                                                              java.lang.String privateKeyPassword,
                                                              java.lang.String p12Path)
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getIdentity

        public static Identity getIdentity​(java.lang.String p12Password,
                                           java.lang.String privateKeyPassword,
                                           java.lang.String p12Path)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getIdentity

        public static Identity getIdentity​(byte[] p12Bytes,
                                           java.lang.String p12Password,
                                           java.lang.String privateKeyPassword)
                                    throws java.security.KeyStoreException,
                                           java.security.UnrecoverableKeyException,
                                           java.security.NoSuchAlgorithmException,
                                           java.io.IOException,
                                           java.security.cert.CertificateException,
                                           java.security.NoSuchProviderException
        Throws:
        java.security.KeyStoreException
        java.security.UnrecoverableKeyException
        java.security.NoSuchAlgorithmException
        java.io.IOException
        java.security.cert.CertificateException
        java.security.NoSuchProviderException