Skip to content

Commit

Permalink
feat: login flow is complete
Browse files Browse the repository at this point in the history
Refs: #1
  • Loading branch information
mmariuzzo committed Mar 23, 2022
1 parent 96d400b commit b99ab3d
Show file tree
Hide file tree
Showing 18 changed files with 1,502 additions and 90 deletions.
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);
}

}
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;

}
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;

}
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;

}
Loading

0 comments on commit b99ab3d

Please sign in to comment.