org.bouncycastle.bcpg

Class OnePassSignaturePacket

public class OnePassSignaturePacket extends ContainedPacket

generic signature object
Constructor Summary
OnePassSignaturePacket(int sigType, int hashAlgorithm, int keyAlgorithm, long keyID, boolean isNested)
Method Summary
voidencode(BCPGOutputStream out)
intgetHashAlgorithm()
return the hashAlgorithm tag
intgetKeyAlgorithm()
return the encryption algorithm tag
longgetKeyID()
intgetSignatureType()
Return the signature type.

Constructor Detail

OnePassSignaturePacket

public OnePassSignaturePacket(int sigType, int hashAlgorithm, int keyAlgorithm, long keyID, boolean isNested)

Method Detail

encode

public void encode(BCPGOutputStream out)

getHashAlgorithm

public int getHashAlgorithm()
return the hashAlgorithm tag

getKeyAlgorithm

public int getKeyAlgorithm()
return the encryption algorithm tag

getKeyID

public long getKeyID()

Returns: long

getSignatureType

public int getSignatureType()
Return the signature type.

Returns: the signature type