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 class
Windows' COPYDATASTRUCT.(package private) static interface
An abstraction for a bi-directional pipe.private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final String
Pageant's "class" and "window name".private static final int
Magic constant from Pageant; ID for the CopyStruct used in SendMessage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
close
(LibraryHolder libs, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory, boolean silent) (package private) PageantLibrary.Pipe
createPipe
(String name, int maxSize) Creates a newPageantLibrary.Pipe
.(package private) boolean
Determines 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:
true
if Pageant is running,false
otherwise
-
createPipe
Creates a newPageantLibrary.Pipe
.- Parameters:
name
- for the pipemaxSize
- maximum size for messages- Returns:
- the
PageantLibrary.Pipe
, ornull
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
-