java.lang.Object
org.eclipse.jgit.internal.transport.sshd.agent.connector.PageantLibrary

public final class PageantLibrary extends Object
The PageantLibrary encapsulates the shared memory access and provides a simple pipe abstraction.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • PAGEANT

      private static final String PAGEANT
      Pageant's "class" and "window name".
      See Also:
    • PAGEANT_ID

      private static final int PAGEANT_ID
      Magic constant from Pageant; ID for the CopyStruct used in SendMessage.
      See Also:
  • Constructor Details

    • PageantLibrary

      public PageantLibrary()
  • Method Details

    • isPageantAvailable

      boolean isPageantAvailable()
      Determines whether Pageant is currently running.
      Returns:
      true if Pageant is running, false otherwise
    • createPipe

      PageantLibrary.Pipe createPipe(String name, int maxSize) throws IOException
      Creates a new PageantLibrary.Pipe.
      Parameters:
      name - for the pipe
      maxSize - maximum size for messages
      Returns:
      the PageantLibrary.Pipe, or null if none created
      Throws:
      IOException - on errors
    • close

      private static void close(LibraryHolder libs, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory, boolean silent) throws IOException
      Throws:
      IOException