diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-11-25 16:39:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 16:39:28 +0100 |
commit | c9f27f2de9b3fa713d10cb2f8014aad4e8af3070 (patch) | |
tree | ca00d8bae19bfcb5d7d55b388b568136ea62b57d /src/main/java/org/uic/barcode/dynamicFrame/DynamicFrame.java | |
parent | Merge pull request #34 from UnionInternationalCheminsdeFer/1.2.7 (diff) | |
parent | test and bug fix on countermark and viaStation (diff) | |
download | UIC-barcode-c9f27f2de9b3fa713d10cb2f8014aad4e8af3070.tar UIC-barcode-c9f27f2de9b3fa713d10cb2f8014aad4e8af3070.tar.gz UIC-barcode-c9f27f2de9b3fa713d10cb2f8014aad4e8af3070.tar.bz2 UIC-barcode-c9f27f2de9b3fa713d10cb2f8014aad4e8af3070.tar.lz UIC-barcode-c9f27f2de9b3fa713d10cb2f8014aad4e8af3070.tar.xz UIC-barcode-c9f27f2de9b3fa713d10cb2f8014aad4e8af3070.tar.zst UIC-barcode-c9f27f2de9b3fa713d10cb2f8014aad4e8af3070.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/dynamicFrame/DynamicFrame.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/uic/barcode/dynamicFrame/DynamicFrame.java b/src/main/java/org/uic/barcode/dynamicFrame/DynamicFrame.java index 6cc1eaa..c74215d 100644 --- a/src/main/java/org/uic/barcode/dynamicFrame/DynamicFrame.java +++ b/src/main/java/org/uic/barcode/dynamicFrame/DynamicFrame.java @@ -14,7 +14,6 @@ import java.security.spec.X509EncodedKeySpec; import org.uic.barcode.asn1.datatypes.Asn1Optional;
import org.uic.barcode.asn1.datatypes.CharacterRestriction;
import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
import org.uic.barcode.asn1.datatypes.RestrictedString;
import org.uic.barcode.asn1.datatypes.Sequence;
import org.uic.barcode.asn1.datatypesimpl.OctetString;
@@ -29,7 +28,6 @@ import org.uic.barcode.utils.AlgorithmNameResolver; * Implementation of the Draft under discussion, not final.
*/
@Sequence
-@HasExtensionMarker
public class DynamicFrame extends Object{
public DynamicFrame() {}
@@ -152,7 +150,9 @@ public class DynamicFrame extends Object{ byte[] keyBytes = this.getLevel2SignedData().getLevel1Data().level2publicKey.toByteArray();
X509EncodedKeySpec keySpec = new X509EncodedKeySpec(keyBytes);
key = KeyFactory.getInstance(keyAlgName).generatePublic(keySpec);
- } catch (InvalidKeySpecException | NoSuchAlgorithmException e1) {
+ } catch (InvalidKeySpecException e1) {
+ return Constants.LEVEL2_VALIDATION_KEY_ALG_NOT_IMPLEMENTED;
+ } catch (NoSuchAlgorithmException e1) {
return Constants.LEVEL2_VALIDATION_KEY_ALG_NOT_IMPLEMENTED;
}
|