diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-01-24 16:51:04 +0100 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-01-24 16:51:04 +0100 |
commit | 09f0f9449a10b713207126348105fafec4781bed (patch) | |
tree | 3e68c5dd9253443baf73de9895e8a57b4dcc52cc /src/main/java/org/uic/barcode/dynamicFrame/api/IDynamicFrame.java | |
parent | new dynamic header version 2.0.0 (diff) | |
download | UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.gz UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.bz2 UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.lz UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.xz UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.tar.zst UIC-barcode-09f0f9449a10b713207126348105fafec4781bed.zip |
Diffstat (limited to 'src/main/java/org/uic/barcode/dynamicFrame/api/IDynamicFrame.java')
-rw-r--r-- | src/main/java/org/uic/barcode/dynamicFrame/api/IDynamicFrame.java | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/main/java/org/uic/barcode/dynamicFrame/api/IDynamicFrame.java b/src/main/java/org/uic/barcode/dynamicFrame/api/IDynamicFrame.java index f357c4d..1e8a0ff 100644 --- a/src/main/java/org/uic/barcode/dynamicFrame/api/IDynamicFrame.java +++ b/src/main/java/org/uic/barcode/dynamicFrame/api/IDynamicFrame.java @@ -89,21 +89,23 @@ public interface IDynamicFrame{ *
* Note: an appropriate security provider (e.g. BC) must be registered before
*
- * @return the int
+ * @param data the data content
+ * @return the return error code
* @throws EncodingFormatException
*/
- public int validateLevel2() throws EncodingFormatException;
+ public int validateLevel2(byte[] data) throws EncodingFormatException;
/**
* Verify the level 2 signature
*
* Note: an appropriate security provider (e.g. BC) must be registered before
*
- * @param prov the prov
- * @return the int
+ * @param prov the registered security provider
+ * @param data the data content
+ * @return the return error code
* @throws EncodingFormatException
*/
- public int validateLevel2(Provider prov) throws EncodingFormatException;
+ public int validateLevel2(Provider prov, byte[] data) throws EncodingFormatException;
/**
* Verify the level 1 signature
@@ -111,23 +113,25 @@ public interface IDynamicFrame{ * Note: an appropriate security provider (e.g. BC) must be registered before
*
* @param key the key
- * @param prov the prov
- * @return the int
+ * @param data the data content
+ * @return the return error code
* @throws EncodingFormatException
*/
- public int validateLevel1(PublicKey key, Provider prov) throws EncodingFormatException;
+ public int validateLevel1(PublicKey key, byte[] data) throws EncodingFormatException;
-
/**
* Verify the level 1 signature
*
* Note: an appropriate security provider (e.g. BC) must be registered before
*
* @param key the key
- * @return the int
+ * @param prov the registered security provider
+ * @param the data content
+ * @return the return error code
* @throws EncodingFormatException
*/
- public int validateLevel1(PublicKey key) throws EncodingFormatException;
+ public int validateLevel1(PublicKey key, Provider prov, byte[] data) throws EncodingFormatException;
+
/**
* Sign level 2 data without a specific security provider.
|