Class SignatorySupport

  • All Implemented Interfaces:
    Signatory
    Direct Known Subclasses:
    PgpSignatory

    public abstract class SignatorySupport
    extends java.lang.Object
    implements Signatory
    Convenience base class for Signatory implementations.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] sign​(java.io.InputStream toSign)
      Exhausts toSign, and returns the raw signature bytes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SignatorySupport

        public SignatorySupport()
    • Method Detail

      • sign

        public byte[] sign​(java.io.InputStream toSign)
        Description copied from interface: Signatory
        Exhausts toSign, and returns the raw signature bytes.
        Specified by:
        sign in interface Signatory
        Parameters:
        toSign - The source of the data to be signed
        Returns:
        The raw bytes of the signature