Skip to content

[ELY-2929] Initial elliptic curve code and test for JWT usage.#2415

Open
rsearls wants to merge 2 commits intowildfly-security:2.xfrom
rsearls:ELY-2929-elliptic-curve-2.x-BACKUP
Open

[ELY-2929] Initial elliptic curve code and test for JWT usage.#2415
rsearls wants to merge 2 commits intowildfly-security:2.xfrom
rsearls:ELY-2929-elliptic-curve-2.x-BACKUP

Conversation

@rsearls
Copy link
Copy Markdown
Contributor

@rsearls rsearls commented Feb 25, 2026

@rsearls rsearls requested a review from a team as a code owner February 25, 2026 16:16
Copy link
Copy Markdown
Contributor

@skyllarr skyllarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rsearls ! I just added minor comments. I've noticed that this is marked as feature request in jira. Should this follow feature development process or are we good to proceed without it?

And I was just wondering if we should use an external library like nimbus jose jwt to add EC support to avoid bugs and having to maintain this. But for RSA we also do not use external library so this might be something to consider later. So this lgtm


// Perform the verification
boolean verfiedSig = verifier.verify(derSignature);
System.out.println("Signature verifcation is: " + verfiedSig);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a minor, change this to logging instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can also update this line to use the logger instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

/**
* Process an RSA or EC (Ellipitic Curve) based JWT token.
* @param evidence
* @return
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a minor, missing return javadoc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -0,0 +1,35 @@
package org.wildfly.security.evidence;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing header

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -0,0 +1,50 @@
package org.wildfly.security.evidence;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing header

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@rsearls
Copy link
Copy Markdown
Contributor Author

rsearls commented Mar 12, 2026

Darran created the jira. We should ask him if this should be treated as
a feature request.

As to switching to a 3rd party JSON library. I used the pre-existing JSON
handling library so as not to introduce a new dependency. I would suggest
continuing to use the existing library unless there is some compelling
reason to switch all JSON handling code to a new library.

Copy link
Copy Markdown
Contributor

@skyllarr skyllarr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving but this should probably have EAP7 created and follow the feature development process, I'll let @darranl confirm

@darranl
Copy link
Copy Markdown
Contributor

darranl commented Mar 19, 2026

I have converted the issue to an Enhancement, I think for changes like this we will need to be able to merge to Elytron to keep our codebase relevent - trying to map this to stability levels would intriduce more pain than benefits.

@skyllarr
Copy link
Copy Markdown
Contributor

I have converted the issue to an Enhancement, I think for changes like this we will need to be able to merge to Elytron to keep our codebase relevent - trying to map this to stability levels would intriduce more pain than benefits.

Okay sounds good, I've approved this before, if you agree you can merge before it gets obsolete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants