Interface DecryptionServer

    • Method Detail

      • getCipherVersions

        List<CipherVersion> getCipherVersions​(String aNamespace,
                                              String aMessage,
                                              String aSignature)
                                       throws SignatureVerificationException
        Returns the currently available cipher versions. An implementation might just make use of an ObjectOutputStream. Though the stream is encrypted with the public key of the message signer. ------------------------------------------------------------------------- Another approach might not return a stream, it might return a list containing the cipher versions with the ciphers being encrypted by the public key. Or a stream is returned which is not encrypted but the ciphers in the cipher versions carried by the stream. -------------------------------------------------------------------------
        Parameters:
        aNamespace - The namespace for which to get the cipher versions.
        aMessage - A message to be signed by the requester of the cipher version.
        aSignature - The signature of the requester so that the according public key for encryption can be determined and the origin can be verified.
        Returns:
        A list as with the currently known cipher versions. The ciphers contained therein might be encrypted!
        Throws:
        SignatureVerificationException - in case verifying the signature for the message failed to to no public key found which successfully verified the signature