Refactoring in security (TLS) - #25056
Merged
Merged
Conversation
dmatej
force-pushed
the
tls
branch
4 times, most recently
from
July 20, 2024 10:10
252d005 to
0756c8a
Compare
- It was referred just from two other constants which had to have the dependency on deployment-common - JWS will be removed soon OR replaced by the Open Web Start Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
- the sleep can be interrupted - reproduced randomly on local machine - shortened sleep time to 100 ms Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
- Added missing logs (when some class was not available, it did not even log it) - Removed e.printstacktrace when we already have logging or throw - Added missing exception cause Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
- When I broke some classes critical for startup, this was throwing NPE too Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
- import order, wildchar imports removed - final fields - redundant modifiers, fixed order - improved braces - improved generics - habitat renamed to locator - using foreach were possible - throwing exceptions with causes Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
- Now it is injectable - Simplified initialization of related classes Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
- SSLImplementation is an interface and HK2 Contract, GlassfishSSLImpl
implements it
- SecurityRoleMapperFactoryGen moved to core-ee where is the only usage of it
- SSLConfigurator - lookup removed; in all cases I have seen now works the
locator variant, but I left the class loader variant here for now.
- JSSEImplementation was used just in tests
-> moved there as JSSEImplementation4Tests
- SecureAdminConfigUpgrade - the comment was not true any more
- GlassfishServerSocketFactory now always uses locator
Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
- Changes based on directly used packages in the module - I will do that with maven plugin later again. Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
avpinchuk
approved these changes
Jul 22, 2024
pzygielo
reviewed
Jul 22, 2024
arjantijms
reviewed
Jul 22, 2024
|
|
||
| private final InetAddress mAddress; | ||
| private final ServiceLocator habitat; | ||
| private final ServiceLocator locator; |
Contributor
There was a problem hiding this comment.
Absolutely tiny remark, and no need to change it, but I think "serviceLocator" as variable name would be more clear (various other locations use that too)
Contributor
Author
There was a problem hiding this comment.
We use both, I prefer shorter version as it is clear in the context what it is.
Signed-off-by: David MatÄjÄek <david.matejcek@omnifish.ee>
bvfalcon
pushed a commit
to bvfalcon/eclipse-glassfish
that referenced
this pull request
Apr 25, 2026
Refactoring in security (TLS)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@Contract, inaccessible classes in a context)@Contractwas the cause of all that original boilerplate codeReview