-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs: #1
- Loading branch information
Showing
18 changed files
with
1,502 additions
and
90 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
...ples/relying-party-spring-boot/src/main/java/it/spid/cie/oidc/exception/JWTException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
package it.spid.cie.oidc.exception; | ||
|
||
@SuppressWarnings("serial") | ||
public class JWTException extends SPIDException { | ||
|
||
public static class Decryption extends JWTException { | ||
|
||
public Decryption(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} | ||
|
||
public static class Parse extends JWTException { | ||
|
||
public Parse(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} | ||
|
||
public static class Generic extends JWTException { | ||
|
||
public Generic(String message) { | ||
super(message); | ||
} | ||
|
||
public Generic(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} | ||
|
||
public static class UnknownKid extends JWTException { | ||
|
||
public UnknownKid(String kid, String jwks) { | ||
super("kid " + kid + " not found in jwks " + jwks); | ||
} | ||
|
||
} | ||
|
||
public static class UnsupportedAlgorithm extends JWTException { | ||
|
||
public UnsupportedAlgorithm(String alg) { | ||
super(alg + " has beed disabled for security reason"); | ||
} | ||
|
||
} | ||
|
||
public static class Verifier extends JWTException { | ||
|
||
public Verifier(String message) { | ||
super(message); | ||
} | ||
|
||
public Verifier(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} | ||
|
||
|
||
private JWTException(String message) { | ||
super(message); | ||
} | ||
|
||
private JWTException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...les/relying-party-spring-boot/src/main/java/it/spid/cie/oidc/exception/SPIDException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package it.spid.cie.oidc.exception; | ||
|
||
public class SPIDException extends Exception { | ||
|
||
public SPIDException() { | ||
super(); | ||
} | ||
|
||
public SPIDException(String message) { | ||
super(message); | ||
} | ||
|
||
public SPIDException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public SPIDException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
private static final long serialVersionUID = -1839651152644089727L; | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...y-spring-boot/src/main/java/it/spid/cie/oidc/exception/UnsupportedAlgorithmException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package it.spid.cie.oidc.exception; | ||
|
||
public class UnsupportedAlgorithmException extends SPIDException { | ||
|
||
public UnsupportedAlgorithmException() { | ||
super(); | ||
} | ||
|
||
public UnsupportedAlgorithmException(String message) { | ||
super(message); | ||
} | ||
|
||
public UnsupportedAlgorithmException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public UnsupportedAlgorithmException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
private static final long serialVersionUID = -5156493052679477725L; | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...lying-party-spring-boot/src/main/java/it/spid/cie/oidc/exception/ValidationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package it.spid.cie.oidc.exception; | ||
|
||
public class ValidationException extends SPIDException { | ||
|
||
public ValidationException() { | ||
super(); | ||
} | ||
|
||
public ValidationException(String message) { | ||
super(message); | ||
} | ||
|
||
public ValidationException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public ValidationException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
private static final long serialVersionUID = 4061357156399802866L; | ||
|
||
} |
Oops, something went wrong.