| java.lang.Object org.bouncycastle.bcpg.Packet org.bouncycastle.bcpg.ContainedPacket org.bouncycastle.bcpg.SignaturePacket
Constructor Summary | |
| SignaturePacket(BCPGInputStream in) | 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) |
SignaturePacket | public SignaturePacket(int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, SignatureSubpacket[] hashedData, SignatureSubpacket[] unhashedData, byte[] fingerPrint, MPInteger[] signature)(Code) | | Generate a version 4 signature packet.
Parameters: signatureType - Parameters: keyAlgorithm - Parameters: hashAlgorithm - Parameters: hashedData - Parameters: unhashedData - Parameters: fingerPrint - Parameters: signature - |
SignaturePacket | public SignaturePacket(int version, int signatureType, long keyID, int keyAlgorithm, int hashAlgorithm, long creationTime, byte[] fingerPrint, MPInteger[] signature)(Code) | | Generate a version 2/3 signature packet.
Parameters: signatureType - Parameters: keyAlgorithm - Parameters: hashAlgorithm - Parameters: fingerPrint - Parameters: signature - |
getCreationTime | public long getCreationTime()(Code) | | Return the creation time of the signature in milli-seconds.
the creation time in millis |
getHashAlgorithm | public int getHashAlgorithm()(Code) | | return the hashAlgorithm tag
|
getKeyAlgorithm | public int getKeyAlgorithm()(Code) | | return the encryption algorithm tag
|
getKeyID | public long getKeyID()(Code) | | return the keyID
the keyID that created the signature. |
getSignature | public MPInteger[] getSignature()(Code) | | 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 | public byte[] getSignatureBytes()(Code) | | Return the byte encoding of the signature section.
uninterpreted signature bytes. |
getSignatureTrailer | public byte[] getSignatureTrailer()(Code) | | return the signature trailer that must be included with the data
to reconstruct the signature
byte[] |
getSignatureType | public int getSignatureType()(Code) | | return the signature type.
|
getVersion | public int getVersion()(Code) | | get the version number
|
|
|