| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private byte[] | |
| private int | |
| private SignatureSubpacket[] | |
| private int | |
| private long | |
| private MPInteger[] | |
| private byte[] | |
| private int | |
| private SignatureSubpacket[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | SignaturePacket(int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerPrint, MPInteger[] signature)
Generate a version 4 signature packet. |
| public | SignaturePacket(int version, int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, long creationTime, byte[] fingerPrint, MPInteger[] signature)
Generate a version 2/3 signature packet. |
| public | SignaturePacket(int version, int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerPrint, MPInteger[] signature)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static SignaturePacket | |
| public long | Returns: the creation time in millisReturn the creation time of the signature in milli-seconds. |
| public byte[] | Returns: fingerprint (digest prefix) of the signatureReturn the signatures fingerprint. |
| public int | |
| public SignatureSubpacket[] | |
| public int | |
| public long | |
| public 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. |
| public byte[] | Returns: uninterpreted signature bytes.Return the byte encoding of the signature section. |
| public byte[] | Returns: byte[]return the signature trailer that must be included with the data to reconstruct the signature |
| public int | |
| public SignatureSubpacket[] | |
| public int | |
| private void |
| creationTime | back to summary |
|---|---|
| private long creationTime | |
| fingerPrint | back to summary |
|---|---|
| private byte[] fingerPrint | |
| hashAlgorithm | back to summary |
|---|---|
| private int hashAlgorithm | |
| hashedData | back to summary |
|---|---|
| private SignatureSubpacket[] hashedData | |
| keyAlgorithm | back to summary |
|---|---|
| private int keyAlgorithm | |
| keyID | back to summary |
|---|---|
| private long keyID | |
| signature | back to summary |
|---|---|
| private MPInteger[] signature | |
| signatureEncoding | back to summary |
|---|---|
| private byte[] signatureEncoding | |
| signatureType | back to summary |
|---|---|
| private int signatureType | |
| unhashedData | back to summary |
|---|---|
| private SignatureSubpacket[] unhashedData | |
| version | back to summary |
|---|---|
| private int version | |
| SignaturePacket | back to summary |
|---|---|
| pack-priv SignaturePacket(BCPGInputStream in) throws IOException | |
| SignaturePacket | back to summary |
|---|---|
| public SignaturePacket(int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerPrint, MPInteger[] signature) Generate a version 4 signature packet. | |
| SignaturePacket | back to summary |
|---|---|
| public 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 | back to summary |
|---|---|
| public SignaturePacket(int version, int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerPrint, MPInteger[] signature) | |
| encode | back to summary |
|---|---|
| public void encode(BCPGOutputStream out) throws IOException Implements abstract org. | |
| fromByteArray | back to summary |
|---|---|
| public static SignaturePacket fromByteArray(byte[] data) throws IOException | |
| getCreationTime | back to summary |
|---|---|
| public long getCreationTime() Return the creation time of the signature in milli-seconds.
| |
| getFingerPrint | back to summary |
|---|---|
| public byte[] getFingerPrint() Return the signatures fingerprint.
| |
| getHashAlgorithm | back to summary |
|---|---|
| public int getHashAlgorithm() return the hashAlgorithm tag | |
| getHashedSubPackets | back to summary |
|---|---|
| public SignatureSubpacket[] getHashedSubPackets() | |
| getKeyAlgorithm | back to summary |
|---|---|
| public int getKeyAlgorithm() return the encryption algorithm tag | |
| getKeyID | back to summary |
|---|---|
| public long getKeyID() return the keyID
| |
| getSignature | back to summary |
|---|---|
| public 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. | |
| getSignatureBytes | back to summary |
|---|---|
| public byte[] getSignatureBytes() Return the byte encoding of the signature section.
| |
| getSignatureTrailer | back to summary |
|---|---|
| public byte[] getSignatureTrailer() return the signature trailer that must be included with the data to reconstruct the signature
| |
| getSignatureType | back to summary |
|---|---|
| public int getSignatureType() return the signature type. | |
| getUnhashedSubPackets | back to summary |
|---|---|
| public SignatureSubpacket[] getUnhashedSubPackets() | |
| getVersion | back to summary |
|---|---|
| public int getVersion() get the version number | |
| setCreationTime | back to summary |
|---|---|
| private void setCreationTime() | |