Top Description Fields Constructors Methods
org.bouncycastle.bcpg

public Class OnePassSignaturePacket

extends ContainedPacket
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException

generic signature object

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private long
private int
private int

Constructor Summary

AccessConstructor and Description
pack-priv
public
OnePassSignaturePacket(int sigType, int hashAlgorithm, int keyAlgorithm, long keyID, boolean isNested)

Method Summary

Modifier and TypeMethod and Description
public void
public int
getHashAlgorithm()

return the hashAlgorithm tag

public int
getKeyAlgorithm()

return the encryption algorithm tag

public long

Returns:

long
getKeyID
()

public int

Returns:

the signature type
getSignatureType
()

Return the signature type.

public boolean

Returns:

true if encapsulating, false otherwise
isContaining
()

Return true, if the signature contains any signatures that follow.

Inherited from org.bouncycastle.bcpg.ContainedPacket:
getEncoded

Field Detail

hashAlgorithmback to summary
private int hashAlgorithm
isContainingback to summary
private int isContaining
keyAlgorithmback to summary
private int keyAlgorithm
keyIDback to summary
private long keyID
sigTypeback to summary
private int sigType
versionback to summary
private int version

Constructor Detail

OnePassSignaturePacketback to summary
pack-priv OnePassSignaturePacket(BCPGInputStream in) throws IOException
OnePassSignaturePacketback to summary
public OnePassSignaturePacket(int sigType, int hashAlgorithm, int keyAlgorithm, long keyID, boolean isNested)

Method Detail

encodeback to summary
public void encode(BCPGOutputStream out) throws IOException

Implements abstract org.bouncycastle.bcpg.ContainedPacket.encode.

getHashAlgorithmback to summary
public int getHashAlgorithm()

return the hashAlgorithm tag

getKeyAlgorithmback to summary
public int getKeyAlgorithm()

return the encryption algorithm tag

getKeyIDback to summary
public long getKeyID()
Returns:long

long

getSignatureTypeback to summary
public int getSignatureType()

Return the signature type.

Returns:int

the signature type

isContainingback to summary
public boolean isContaining()

Return true, if the signature contains any signatures that follow. An bracketing OPS is followed by additional OPS packets and is calculated over all the data between itself and its corresponding signature (it is an attestation for encapsulated signatures).

Returns:boolean

true if encapsulating, false otherwise