Class SensitiveString

java.lang.Object
org.jpos.security.SensitiveString
All Implemented Interfaces:
AutoCloseable, Supplier<String>

public class SensitiveString extends Object implements Supplier<String>, AutoCloseable
Holds a sensitive string in memory under AES-GCM encryption with a per-instance key, exposing the cleartext only on demand and zeroing the buffer when the instance is cleaned.