All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testifyproject.bouncycastle.operator.InputDecryptor Maven / Gradle / Ivy

package org.testifyproject.bouncycastle.operator;

import java.org.testifyproject.testifyproject.InputStream;

import org.testifyproject.bouncycastle.asn1.x509.AlgorithmIdentifier;

/**
 * General interface for an operator that is able to produce
 * an InputStream that will org.testifyproject.testifyprojectcrypt a stream of encrypted data.
 */
public interface InputDecryptor
{
    /**
     * Return the algorithm identifier org.testifyproject.testifyprojectscribing the encryption
     * algorithm and parameters this org.testifyproject.testifyprojectcryptor can process.
     *
     * @return algorithm oid and parameters.
     */
    AlgorithmIdentifier getAlgorithmIdentifier();

    /**
     * Wrap the passed in input stream encIn, returning an input stream
     * that org.testifyproject.testifyprojectcrypts what it reads from encIn before returning it.
     *
     * @param encIn InputStream containing encrypted input.
     * @return an org.testifyproject.testifyprojectcrypting InputStream
     */
    InputStream getInputStream(InputStream encIn);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy