Interface KeyMaterialReaderBackend


  • public interface KeyMaterialReaderBackend
    • Method Detail

      • read

        KeyMaterial read​(java.io.InputStream data,
                         java.lang.Long tag)
                  throws java.io.IOException,
                         BadDataException
        Read a KeyMaterial (either Key or Certificate) from the given InputStream.
        Parameters:
        data - input stream containing the binary representation of the key.
        tag - tag for the key material. Might be null.
        Returns:
        key or certificate object
        Throws:
        java.io.IOException - in case of an IO error
        BadDataException - in case that the data stream does not contain a valid OpenPGP key/certificate