Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(core.keystore): remove deprecated use of DERIA5String #5086

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

mattdibi
Copy link
Contributor

@mattdibi mattdibi commented Jan 9, 2024

Remove deprecated use of DERIA5String in core.keystore to fix failure in Sonar Quality gate.

With the update of BouncyCastle in #5027 our Sonar Quality pipeline reported a new critial issue with the use of DERIA5String. See: Use static access with "org.bouncycastle.asn1.ASN1IA5String" for "getInstance".

This PR addresses the issue by using the base class method as suggested by the BouncyCastle documentation:

image

Reference: https://javadoc.io/static/org.bouncycastle/bcprov-jdk15on/1.70/org/bouncycastle/asn1/DERIA5String.html

@mattdibi mattdibi requested a review from nicolatimeus January 9, 2024 08:26
@nicolatimeus nicolatimeus merged commit 41cbbd0 into develop Jan 16, 2024
11 checks passed
@nicolatimeus nicolatimeus deleted the sonarfix/asn1ia5string branch January 16, 2024 09:38
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.

2 participants