I know that it is possible to encrypt a password and put the encrypted data in the settings.xml, so that Maven can access a remote server (for deployment, etc.)
https://github.com/echocat/velma
echocat Velma
…is a Master-Password protected password safe for your maven passwords. These passwords are normally stored in .m2/settings.xml and could be protected by a master password in .m2/settings-security.xml. But this way is still dangerous because every person with access to your computer has access to your Master-Password.
Maybe thats what your are looking for.