Class Resources


  • public final class Resources
    extends java.lang.Object
    Reads the binary test material (keys, certificates, signatures, payloads) bundled with the test suite.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] read​(java.lang.String resourcePath)
      Reads a whole test resource.
      • Methods inherited from class java.lang.Object

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

      • read

        public static byte[] read​(java.lang.String resourcePath)
                           throws java.io.IOException
        Reads a whole test resource.
        Parameters:
        resourcePath - the absolute resource path, for example /data4096.bin
        Returns:
        the resource content
        Throws:
        java.io.IOException - if the resource does not exist or cannot be read