Class PageantLibrary
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.agent.connector.PageantLibrary
The
PageantLibrary encapsulates the shared memory access and provides
a simple pipe abstraction.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWindows' COPYDATASTRUCT.(package private) static interfaceAn abstraction for a bi-directional pipe.private static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final StringPageant's "class" and "window name".private static final intMagic constant from Pageant; ID for the CopyStruct used in SendMessage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidclose(LibraryHolder libs, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory, boolean silent) (package private) PageantLibrary.PipecreatePipe(String name, int maxSize) Creates a newPageantLibrary.Pipe.(package private) booleanDetermines whether Pageant is currently running.
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
PAGEANT
Pageant's "class" and "window name".- See Also:
-
PAGEANT_ID
private static final int PAGEANT_IDMagic 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:
trueif Pageant is running,falseotherwise
-
createPipe
Creates a newPageantLibrary.Pipe.- Parameters:
name- for the pipemaxSize- maximum size for messages- Returns:
- the
PageantLibrary.Pipe, ornullif 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
-