Skip to content

org.springframework.mail.javamail.JavaMailSender setPassword should take a char[] #34312

@mebigfatguy

Description

@mebigfatguy

We are getting security tooling reports because

JavaMailSender.setPassword(String s) 

exists, and thus the password can not be guaranteed to be cleared from memory. If the the api was changed/added to take

JavaMailSender.setPassword(char[] c)

Then the array could be Arrays.fill(c, 0);

when done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions