genericize the secrets class
documentation about string memory in java