public class OnePassSignaturePacket extends ContainedPacket
AEAD_ENC_DATA, COMPRESSED_DATA, EXPERIMENTAL_1, EXPERIMENTAL_2, EXPERIMENTAL_3, EXPERIMENTAL_4, LITERAL_DATA, MARKER, MOD_DETECTION_CODE, ONE_PASS_SIGNATURE, PADDING, PUBLIC_KEY, PUBLIC_KEY_ENC_SESSION, PUBLIC_SUBKEY, RESERVED, SECRET_KEY, SECRET_SUBKEY, SIGNATURE, SYM_ENC_INTEGRITY_PRO, SYMMETRIC_KEY_ENC, SYMMETRIC_KEY_ENC_SESSION, TRUST, USER_ATTRIBUTE, USER_ID
Constructor and Description |
---|
OnePassSignaturePacket(int sigType,
int hashAlgorithm,
int keyAlgorithm,
long keyID,
boolean isNested) |
Modifier and Type | Method and Description |
---|---|
void |
encode(BCPGOutputStream out) |
int |
getHashAlgorithm()
return the hashAlgorithm tag
|
int |
getKeyAlgorithm()
return the encryption algorithm tag
|
long |
getKeyID() |
int |
getSignatureType()
Return the signature type.
|
boolean |
isContaining()
Return true, if the signature contains any signatures that follow.
|
getEncoded
getPacketTag, isCritical
public OnePassSignaturePacket(int sigType, int hashAlgorithm, int keyAlgorithm, long keyID, boolean isNested)
public int getSignatureType()
public int getKeyAlgorithm()
public int getHashAlgorithm()
public long getKeyID()
public boolean isContaining()
public void encode(BCPGOutputStream out) throws java.io.IOException
encode
in class ContainedPacket
java.io.IOException