Password aliases are a feature of Payara Server as Payara Server is fully compatible with MicroProfile. You can read technical documentation about Password Aliases within Payara here: Password Aliases Overview :: Payara Community Documentation
To answer your question directly, yes it is possible to access password aliases from code without annotations. For example, with a password alias where the alias name is Payara you can use the following code to access the password alias programmatically.