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

no.ks.fiks.io.asice.crypto.DecryptionStreamServiceImpl Maven / Gradle / Ivy

package no.ks.fiks.io.asice.crypto;

import lombok.NonNull;
import no.ks.kryptering.CMSKrypteringImpl;

import java.io.InputStream;
import java.security.PrivateKey;

public class DecryptionStreamServiceImpl implements DecryptionStreamService {

    private final CMSKrypteringImpl cmsKryptering = new CMSKrypteringImpl();

    @Override
    public InputStream decrypterStream(@NonNull InputStream encryptedStream, @NonNull PrivateKey privateKey) {
        return cmsKryptering.dekrypterData(encryptedStream, privateKey);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy