Class PageantLibrary
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.sshd.agent.connector.PageantLibrary
-
public final class PageantLibrary extends java.lang.Object
ThePageantLibrary
encapsulates the shared memory access and provides a simple pipe abstraction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PageantLibrary.CopyStruct
Windows' COPYDATASTRUCT.(package private) static interface
PageantLibrary.Pipe
An abstraction for a bi-directional pipe.private static class
PageantLibrary.PipeImpl
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
LOG
private static java.lang.String
PAGEANT
Pageant's "class" and "window name".private static int
PAGEANT_ID
Magic 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 void
close(LibraryHolder libs, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory, boolean silent)
(package private) PageantLibrary.Pipe
createPipe(java.lang.String name, int maxSize)
Creates a newPageantLibrary.Pipe
.(package private) boolean
isPageantAvailable()
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:
true
if Pageant is running,false
otherwise
-
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
, ornull
if 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
-
-