-
Notifications
You must be signed in to change notification settings - Fork 148
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
Refactoring in security (TLS) #25056
Conversation
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 <[email protected]>
- the sleep can be interrupted - reproduced randomly on local machine - shortened sleep time to 100 ms Signed-off-by: David Matějček <[email protected]>
Signed-off-by: David Matějček <[email protected]>
- 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 <[email protected]>
- When I broke some classes critical for startup, this was throwing NPE too Signed-off-by: David Matějček <[email protected]>
Signed-off-by: David Matějček <[email protected]>
- 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 <[email protected]>
- Now it is injectable - Simplified initialization of related classes Signed-off-by: David Matějček <[email protected]>
Signed-off-by: David Matějček <[email protected]>
Signed-off-by: David Matějček <[email protected]>
Signed-off-by: David Matějček <[email protected]>
- 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 <[email protected]>
- 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 <[email protected]>
nucleus/grizzly/config/src/main/java/org/glassfish/grizzly/config/ssl/JSSE14Support.java
Show resolved
Hide resolved
...ommon/common-util/src/test/java/com/sun/enterprise/universal/process/ProcessManagerTest.java
Outdated
Show resolved
Hide resolved
@@ -45,7 +46,7 @@ | |||
public class SecureRMIServerSocketFactory extends SslRMIServerSocketFactory { | |||
|
|||
private final InetAddress mAddress; | |||
private final ServiceLocator habitat; | |||
private final ServiceLocator locator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use both, I prefer shorter version as it is clear in the context what it is.
Signed-off-by: David Matějček <[email protected]>
@Contract
, inaccessible classes in a context)@Contract
was the cause of all that original boilerplate codeReview