Class LegacyFullHybridDecrypt

  • All Implemented Interfaces:
    HybridDecrypt

    @Immutable
    public final class LegacyFullHybridDecrypt
    extends java.lang.Object
    implements HybridDecrypt
    Takes an arbitrary raw HybridDecrypt and makes it a full primitive. This is a class that helps us transition onto the new Keys and Configurations interface, by bringing potential user-defined primitives to a common denominator with our primitives over which we have control.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static HybridDecrypt create​(LegacyProtoKey key)  
      byte[] decrypt​(byte[] ciphertext, byte[] contextInfo)
      Decryption operation: decrypts ciphertext verifying the integrity of contextInfo.
      • Methods inherited from class java.lang.Object

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

      • create

        public static HybridDecrypt create​(LegacyProtoKey key)
                                    throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • decrypt

        public byte[] decrypt​(byte[] ciphertext,
                              byte[] contextInfo)
                       throws java.security.GeneralSecurityException
        Description copied from interface: HybridDecrypt
        Decryption operation: decrypts ciphertext verifying the integrity of contextInfo.
        Specified by:
        decrypt in interface HybridDecrypt
        Returns:
        resulting plaintext
        Throws:
        java.security.GeneralSecurityException