Skip to content

Commit

Permalink
feat(CS): PR fix
Browse files Browse the repository at this point in the history
Refs: XRDDEV-2694
  • Loading branch information
ovidijusnortal committed Nov 20, 2024
1 parent a74673c commit c27b3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void populateCertificateDetails(final CertificateDetails certificateDeta
certificateDetails.setEcPublicParameters(getCurveName(ecPublicKey));
certificateDetails.setEcPublicKeyPoint(getEncodedPoint(ecPublicKey));
}
default -> { /* do nothing */ }
default -> throw new IllegalStateException("Unexpected type of public key: " + publicKey.getClass().getName());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public CertificateDetails convert(X509Certificate x509Certificate) {
certificate.setEcPublicParameters(getCurveName(ecPublicKey));
certificate.setEcPublicKeyPoint(getEncodedPoint(ecPublicKey));
}
default -> { /* do nothing */ }
default -> throw new IllegalStateException("Unexpected type of public key: " + publicKey.getClass().getName());
}


Expand Down

0 comments on commit c27b3e1

Please sign in to comment.