Class EncryptedObject<T extends Serializable>

java.lang.Object
io.jenkins.plugins.cursor_origin_branch_source.EncryptedObject<T>
All Implemented Interfaces:
Serializable

public final class EncryptedObject<T extends Serializable> extends Object implements Serializable
A encrypted object which may be passed to an agent and back and then used safely from the controller. Any attempt by code running in the agent to construct malicious data will be rejected; the data must have been constructed originally in the controller in the same session. Furthermore, the agent cannot inspect the contents (beyond what it could guess based on serialized size). Suitable for use as a field in a SlaveToMasterCallable.
See Also:
  • Constructor Details

    • EncryptedObject

      public EncryptedObject(T o)
      Create an encrypted object wrapper inside the controller.
  • Method Details

    • o

      public T o()
      The wrapped object. May only be called from inside the controller.