Interface Destroyable

  • All Known Subinterfaces:
    CipherState, DHState
    All Known Implementing Classes:
    ChaChaPolyCipherState, CipherStatePair, Curve25519DHState, HandshakeState, Poly1305, SymmetricState

    public interface Destroyable
    Interface for objects that implement destroying. Applications that use the Noise protocol can inadvertently leave sensitive data in the heap if steps are not taken to clean up. This interface can be implemented by objects that know how to securely clean up after themselves. The Noise.destroy() function can help with destroying byte arrays that hold sensitive values.
    • Method Detail

      • destroy

        void destroy()
        Destroys all sensitive state in the current object.