Class PageantLibrary
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.sshd.agent.connector.PageantLibrary
-
public final class PageantLibrary extends java.lang.ObjectThePageantLibraryencapsulates the shared memory access and provides a simple pipe abstraction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPageantLibrary.CopyStructWindows' COPYDATASTRUCT.(package private) static interfacePageantLibrary.PipeAn abstraction for a bi-directional pipe.private static classPageantLibrary.PipeImpl
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGprivate static java.lang.StringPAGEANTPageant's "class" and "window name".private static intPAGEANT_IDMagic constant from Pageant; ID for the CopyStruct used in SendMessage.
-
Constructor Summary
Constructors Constructor Description PageantLibrary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidclose(LibraryHolder libs, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory, boolean silent)(package private) PageantLibrary.PipecreatePipe(java.lang.String name, int maxSize)Creates a newPageantLibrary.Pipe.(package private) booleanisPageantAvailable()Determines whether Pageant is currently running.
-
-
-
Field Detail
-
LOG
private static final org.slf4j.Logger LOG
-
PAGEANT
private static final java.lang.String PAGEANT
Pageant's "class" and "window name".- See Also:
- Constant Field Values
-
PAGEANT_ID
private static final int PAGEANT_ID
Magic constant from Pageant; ID for the CopyStruct used in SendMessage.- See Also:
- "random goop", Constant Field Values
-
-
Method Detail
-
isPageantAvailable
boolean isPageantAvailable()
Determines whether Pageant is currently running.- Returns:
trueif Pageant is running,falseotherwise
-
createPipe
PageantLibrary.Pipe createPipe(java.lang.String name, int maxSize) throws java.io.IOException
Creates a newPageantLibrary.Pipe.- Parameters:
name- for the pipemaxSize- maximum size for messages- Returns:
- the
PageantLibrary.Pipe, ornullif none created - Throws:
java.io.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 java.io.IOException
- Throws:
java.io.IOException
-
-