
org.spongycastle.bcpg.InputStreamPacket Maven / Gradle / Ivy
Go to download
Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle
intended for the Android platform. Android unfortunately ships with a stripped-down version of
Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full,
up-to-date version of the Bouncy Castle cryptographic libs.
package org.spongycastle.bcpg;
/**
* A block of data associated with other packets in a PGP object stream.
*/
public class InputStreamPacket
extends Packet
{
private BCPGInputStream in;
public InputStreamPacket(
BCPGInputStream in)
{
this.in = in;
}
/**
* Obtains an input stream to read the contents of the packet.
*
* Note: you can only read from this once...
*
* @return the data in this packet.
*/
public BCPGInputStream getInputStream()
{
return in;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy