I wrote this class modifying the code provided by Bharath R. on his specific article on Medium (https://medium.com/@bh03051999/aes-gcm-encryption-and-decryption-for-python-java-and-typescript-562dcaa96c22).
The class provides two static methods to obtain the cyphered or decyphered message passing to them the proper string and the masterkey. It also provides the necessary methods and constructors to manage the encryption or decryption of a message using the previously-instantiated JavaAES_256GCM object.