org.bouncycastle.bcpg
public class SignaturePacket extends ContainedPacket implements PublicKeyAlgorithmTags
| Constructor Summary | |
|---|---|
| SignaturePacket(int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerPrint, MPInteger[] signature)
Generate a version 4 signature packet.
| |
| SignaturePacket(int version, int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, long creationTime, byte[] fingerPrint, MPInteger[] signature)
Generate a version 2/3 signature packet.
| |
| SignaturePacket(int version, int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerPrint, MPInteger[] signature) | |
| Method Summary | |
|---|---|
| void | encode(BCPGOutputStream out) |
| long | getCreationTime()
Return the creation time of the signature in milli-seconds.
|
| int | getHashAlgorithm()
return the hashAlgorithm tag |
| SignatureSubpacket[] | getHashedSubPackets() |
| int | getKeyAlgorithm()
return the encryption algorithm tag |
| long | getKeyID()
return the keyID |
| MPInteger[] | getSignature()
return the signature as a set of integers - note this is normalised to be the
ASN.1 encoding of what appears in the signature packet. |
| byte[] | getSignatureBytes()
Return the byte encoding of the signature section. |
| byte[] | getSignatureTrailer()
return the signature trailer that must be included with the data
to reconstruct the signature
|
| int | getSignatureType()
return the signature type. |
| SignatureSubpacket[] | getUnhashedSubPackets() |
| int | getVersion()
get the version number |
Parameters: signatureType keyAlgorithm hashAlgorithm hashedData unhashedData fingerPrint signature
Parameters: signatureType keyAlgorithm hashAlgorithm fingerPrint signature
Returns: the creation time in millis
Returns: the keyID that created the signature.
Returns: uninterpreted signature bytes.
Returns: byte[]