Skip to content

Illegal reflective access by com.sun.mail.util.SocketFetcher #124

@jmehrens

Description

@jmehrens

AngusMail version of: jakartaee/mail-api#391 The Angus PR is: #11 but this seems to be abandon.

Current plan of action is to:

  1. Take that PR and add the needed polish to complete it (with credit to the original author).
  2. Explore using the default X509TrustManager::checkClientTrusted and X509TrustManager::checkServerTrusted as a way to allowed access to sun.security.util.HostnameChecker.
  3. Explore adding a way to wrap the existing reflective access checker and crude checker into internal hostname validators that can be declared as a property.
  4. Explore the ability to chain hostname validators as logical AND and logical OR.
  5. Explore a follow on ticket to implement a mail new property to set endpoint validation. See: JDK-8062515 - Migrate use of sun.security.** to supported API and Endpoint Identification Algorithm Name.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions