public PublicationsFile create(InputStream input) throws KSIException {
        InMemoryPublicationsFile publicationsFile = new InMemoryPublicationsFile(input);

        CMSSignature signature = publicationsFile.getSignature();
        CMSSignatureVerifier verifier = new CMSSignatureVerifier(trustStore);
        verifier.verify(signature);
        return publicationsFile;
    }
public PublicationsFile create ( InputStream input ) throws KSIException { InMemoryPublicationsFile publicationsFile = new InMemoryPublicationsFile ( input ) ; CMSSignature signature = publicationsFile . getSignature ( ) ; CMSSignatureVerifier verifier = new CMSSignatureVerifier ( trustStore ) ; verifier . verify ( signature ) ; return publicationsFile ; }
This method is used to read publications file from input stream. Input stream must be present and must be signed
by trusted PKI certificate.

@param input
input stream to be used to read publications file data
@return returns instance of {@link PublicationsFile}
@throws KSIException
when error occurs