Package com.microej.crypto.test.util
Class Resources
- java.lang.Object
-
- com.microej.crypto.test.util.Resources
-
public final class Resources extends java.lang.ObjectReads 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.
-
-
-
Method Detail
-
read
public static byte[] read(java.lang.String resourcePath) throws java.io.IOExceptionReads 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
-
-