Class BaseFileKeyProvider

    • Method Summary

      Modifier and Type Method Description
      java.security.PrivateKey getPrivate()  
      java.security.PublicKey getPublic()  
      KeyType getType()  
      void init​(java.io.File location)  
      void init​(java.io.File location, PasswordFinder pwdf)  
      void init​(java.io.Reader location)  
      void init​(java.io.Reader privateKey, java.io.Reader publicKey)  
      void init​(java.io.Reader privateKey, java.io.Reader publicKey, PasswordFinder pwdf)  
      void init​(java.io.Reader location, PasswordFinder pwdf)  
      void init​(java.lang.String privateKey, java.lang.String publicKey)  
      void init​(java.lang.String privateKey, java.lang.String publicKey, PasswordFinder pwdf)  
      protected abstract java.security.KeyPair readKeyPair()  
      • Methods inherited from class java.lang.Object

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

      • BaseFileKeyProvider

        public BaseFileKeyProvider()
    • Method Detail

      • init

        public void init​(java.io.Reader location)
        Specified by:
        init in interface FileKeyProvider
      • init

        public void init​(java.io.Reader privateKey,
                         java.io.Reader publicKey)
        Specified by:
        init in interface FileKeyProvider
      • init

        public void init​(java.io.File location)
        Specified by:
        init in interface FileKeyProvider
      • init

        public void init​(java.lang.String privateKey,
                         java.lang.String publicKey)
        Specified by:
        init in interface FileKeyProvider
      • getPrivate

        public java.security.PrivateKey getPrivate()
                                            throws java.io.IOException
        Specified by:
        getPrivate in interface KeyProvider
        Returns:
        the private key.
        Throws:
        java.io.IOException - if there is an I/O error retrieving the private key
      • getPublic

        public java.security.PublicKey getPublic()
                                          throws java.io.IOException
        Specified by:
        getPublic in interface KeyProvider
        Returns:
        the public key.
        Throws:
        java.io.IOException - if there is an I/O error retrieving the public key
      • getType

        public KeyType getType()
                        throws java.io.IOException
        Specified by:
        getType in interface KeyProvider
        Returns:
        the KeyType.
        Throws:
        java.io.IOException - if there is an I/O error retrieving the key type
      • readKeyPair

        protected abstract java.security.KeyPair readKeyPair()
                                                      throws java.io.IOException
        Throws:
        java.io.IOException