Skip to content

Commit

Permalink
fix: Fixing code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
koptan committed Feb 19, 2024
1 parent 49f0a72 commit 8066e63
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* ******************************************************************************
* Copyright (c) 2021,2023 Contributors to the Eclipse Foundation
* Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
/** The type SSI exception. */
public class SSIException extends Exception {

private static final long serialVersionUID = 1L;

/**
* Instantiates a new SSI exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/** The type Did parse exception. */
public class DidParseException extends SSIException {

private static final long serialVersionUID = -8099856673022088164L;
private static final long serialVersionUID = 1L;
/**
* Instantiates a new Did parse exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/** The type Did resolver exception. */
public class DidResolverException extends SSIException {

private static final long serialVersionUID = 1L;
/**
* Instantiates a new Did resolver exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/** The type Invalid json ld exception. */
public class InvalidJsonLdException extends SSIException {
private static final long serialVersionUID = -6582674613332525307L;
private static final long serialVersionUID = 1L;
/**
* Instantiates a new Invalid json ld exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/** The type tranform json LD exception. */
public class TransformJsonLdException extends SSIException {

private static final long serialVersionUID = -1139580728763064789L;
private static final long serialVersionUID = 1L;
/**
* Instantiates a new tranform json LD exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/** The type Invalide private key format. */
public class InvalidPrivateKeyFormatException extends KeyGenerationException {
private static final long serialVersionUID = -3348735256693555408L;
private static final long serialVersionUID = 1L;
/**
* Instantiates a new Invalid private key format.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

/** The type Invalid public key format. */
public class InvalidPublicKeyFormatException extends KeyGenerationException {
private static final long serialVersionUID = -8303592321627404757L;

private static final long serialVersionUID = 1L;
/**
* Instantiates a new Invalide public key format.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/** The type Key Generation Exception */
public class KeyGenerationException extends SSIException {

private static final long serialVersionUID = -6351788213852014647L;
private static final long serialVersionUID = 1L;

/**
* Instantiates a new key generation exception.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

public class KeyTransformationException extends SSIException {

private static final long serialVersionUID = 7992457773475211865L;
private static final long serialVersionUID = 1L;
/**
* Instantiates a new key trnasformation exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/** The type Jwt audience check failed exception. */
public class JwtAudienceCheckException extends SignatureValidationException {
private static final long serialVersionUID = -3258865938704740787L;
private static final long serialVersionUID = 1L;
/**
* Instantiates a new Jwt audience check failed exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/** The type Jwt expired exception. */
public class JwtExpiredException extends SignatureValidationException {
private static final long serialVersionUID = -1766884006095685877L;
private static final long serialVersionUID = 1L;
/**
* Instantiates a new Jwt expired exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/** NoVerificationKeyFoundExcpetion */
public class NoVerificationKeyFoundException extends SignatureVerificationException {
private static final long serialVersionUID = -3859874631952203429L;
private static final long serialVersionUID = 1L;

public NoVerificationKeyFoundException(String message) {
super(message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

/** The type signature check failed exception. */
public class SignatureGenerateFailedException extends SSIException {
private static final long serialVersionUID = -994642818493030478L;
private static final long serialVersionUID = 1L;

/**
* Instantiates a new signature generate failed exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/** The type signature parse exception. */
public class SignatureParseException extends SSIException {
private static final long serialVersionUID = -3875927810143603019L;
private static final long serialVersionUID = 1L;
/**
* Instantiates a new signature parse exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/** The type Signature Validation exception. */
public class SignatureValidationException extends SSIException {

private static final long serialVersionUID = 1L;
/**
* Instantiates a new signature verification exception.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* ******************************************************************************
* Copyright (c) 2021,2023 Contributors to the Eclipse Foundation
* Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand All @@ -26,6 +26,7 @@
/** The type Signature Verification Failed exception. */
public class SignatureVerificationException extends SSIException {

private static final long serialVersionUID = 1L;
/**
* Instantiates a new signature verification failed exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/** The type Signature Verification Failed exception. */
public class SignatureVerificationFailedException extends SSIException {

private static final long serialVersionUID = 1L;
/**
* Instantiates a new signature verification failed exception.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/** The type Unsupported signature type exception. */
public class UnsupportedSignatureTypeException extends SignatureVerificationException {

private static final long serialVersionUID = 6406987797507777929L;
private static final long serialVersionUID = 1L;

/**
* Instantiates a new unsupported signature type exception.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/** The type Unsupported verification method exception. */
public class UnsupportedVerificationMethodException extends SignatureVerificationException {

private static final long serialVersionUID = 6406987797507777929L;
private static final long serialVersionUID = 1L;

/** The verification method */
@Getter private final VerificationMethod method;
Expand Down

0 comments on commit 8066e63

Please sign in to comment.