Class BaseFileKeyProvider

    • 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