Class LegacyFullVerify

  • All Implemented Interfaces:
    PublicKeyVerify

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PublicKeyVerify create​(LegacyProtoKey key)
      Creates the full primitive corresponding to the key.
      void verify​(byte[] signature, byte[] data)
      Verifies whether signature is a valid signature for data.
      • Methods inherited from class java.lang.Object

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

      • create

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

        public void verify​(byte[] signature,
                           byte[] data)
                    throws java.security.GeneralSecurityException
        Description copied from interface: PublicKeyVerify
        Verifies whether signature is a valid signature for data.
        Specified by:
        verify in interface PublicKeyVerify
        Throws:
        java.security.GeneralSecurityException - if signature is not a valid signature for data