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

org.eclipse.packager.rpm.signature.SignatureProcessor Maven / Gradle / Ivy

There is a newer version: 0.21.0
Show newest version
/**
 * Copyright (c) 2016, 2019 Contributors to the Eclipse Foundation
 *
 * See the NOTICE file(s) distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0
 *
 * SPDX-License-Identifier: EPL-2.0
 */

package org.eclipse.packager.rpm.signature;

import java.nio.ByteBuffer;

import org.eclipse.packager.rpm.RpmSignatureTag;
import org.eclipse.packager.rpm.header.Header;

/**
 * Process data for creating a signature
 * 

* The call flow is like this: *

*
    *
  • one call to {@link #init(long)}
  • *
  • one call to {@link #feedHeader(ByteBuffer)}
  • *
  • zero or more calls to {@link #feedPayloadData(ByteBuffer)}, feeding the * full, compressed, payload stream
  • *
  • one call to {@link #finish(Header)}
  • *
*/ public interface SignatureProcessor { /** * initialize the processor * * @param archiveSize * the size of the uncompressed payload archive */ public default void init ( final long archiveSize ) { } public void feedHeader ( ByteBuffer header ); public void feedPayloadData ( ByteBuffer data ); public void finish ( Header signature ); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy