Class SignatureCheck


  • public class SignatureCheck
    extends java.lang.Object
    Tuple-class which bundles together a signature, the signing key that created the signature, an identifier of the signing key and a record of whether the signature was verified.
    • Constructor Detail

      • SignatureCheck

        public SignatureCheck​(org.bouncycastle.openpgp.PGPSignature signature,
                              org.bouncycastle.openpgp.PGPKeyRing signingKeyRing,
                              SubkeyIdentifier signingKeyIdentifier)
        Create a new SignatureCheck object.
        Parameters:
        signature - signature
        signingKeyRing - signing key that created the signature
        signingKeyIdentifier - identifier of the used signing key
    • Method Detail

      • getSignature

        public org.bouncycastle.openpgp.PGPSignature getSignature()
        Return the OpenPGP signature.
        Returns:
        signature
      • getSigningKeyIdentifier

        public SubkeyIdentifier getSigningKeyIdentifier()
        Return an identifier pointing to the exact signing key which was used to create this signature.
        Returns:
        signing key identifier
      • getSigningKeyRing

        public org.bouncycastle.openpgp.PGPKeyRing getSigningKeyRing()
        Return the key ring that contains the signing key that created this signature.
        Returns:
        key ring