Class LegacyFullSign

  • All Implemented Interfaces:
    PublicKeySign

    @Immutable
    public final class LegacyFullSign
    extends java.lang.Object
    implements PublicKeySign
    Takes an arbitrary raw PublicKeySign from the registry and creates a full PublicKeySign out of it.
    • Method Detail

      • create

        public static PublicKeySign create​(LegacyProtoKey key)
                                    throws java.security.GeneralSecurityException
        Creates the full primitive corresponding to the key.
        Throws:
        java.security.GeneralSecurityException
      • sign

        public byte[] sign​(byte[] data)
                    throws java.security.GeneralSecurityException
        Description copied from interface: PublicKeySign
        Computes the signature for data.
        Specified by:
        sign in interface PublicKeySign
        Returns:
        the signature of data
        Throws:
        java.security.GeneralSecurityException