Class DigestToByteBuffer

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.conversions.from_bytebuffer.DigestToByteBuffer
All Implemented Interfaces:
java.util.function.Function<java.nio.ByteBuffer,​java.nio.ByteBuffer>

public class DigestToByteBuffer
extends java.lang.Object
implements java.util.function.Function<java.nio.ByteBuffer,​java.nio.ByteBuffer>
Computes the digest of the ByteBuffer on input and stores it in the output ByteBuffer. The digestTypes available are:
  • MD2
  • MD5
  • SHA-1
  • SHA-224
  • SHA-256
  • SHA-384
  • SHA-512
  • SHA3-224
  • SHA3-256
  • SHA3-384
  • SHA3-512
  • Constructor Summary

    Constructors 
    Constructor Description
    DigestToByteBuffer​(java.lang.String digestType)  
  • Method Summary

    Modifier and Type Method Description
    java.nio.ByteBuffer apply​(java.nio.ByteBuffer byteBuffer)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

  • Method Details

    • apply

      public java.nio.ByteBuffer apply​(java.nio.ByteBuffer byteBuffer)
      Specified by:
      apply in interface java.util.function.Function<java.nio.ByteBuffer,​java.nio.ByteBuffer>