Package ch.bailu.gtk.gio
Klasse UnixCredentialsMessage
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.SocketControlMessage
ch.bailu.gtk.gio.UnixCredentialsMessage
- Alle implementierten Schnittstellen:
PointerInterface
This [class@Gio.SocketControlMessage] contains a [class@Gio.Credentials]
instance. It may be sent using [method@Gio.Socket.send_message] and received
using [method@Gio.Socket.receive_message] over UNIX sockets (ie: sockets in
the `G_SOCKET_FAMILY_UNIX` family).
For an easier way to send and receive credentials over
stream-oriented UNIX sockets, see
[method@Gio.UnixConnection.send_credentials] and
[method@Gio.UnixConnection.receive_credentials]. To receive credentials of
a foreign process connected to a socket, use
[method@Gio.Socket.get_credentials].
Since GLib 2.72, `GUnixCredentialMessage` is available on all platforms. It
requires underlying system support (such as Windows 10 with `AF_UNIX`) at run
time.
Before GLib 2.72, `<gio/gunixcredentialsmessage.h>` belonged to the UNIX-specific
GIO interfaces, thus you had to use the `gio-unix-2.0.pc` pkg-config file
when using it. This is no longer necessary since GLib 2.72.
instance. It may be sent using [method@Gio.Socket.send_message] and received
using [method@Gio.Socket.receive_message] over UNIX sockets (ie: sockets in
the `G_SOCKET_FAMILY_UNIX` family).
For an easier way to send and receive credentials over
stream-oriented UNIX sockets, see
[method@Gio.UnixConnection.send_credentials] and
[method@Gio.UnixConnection.receive_credentials]. To receive credentials of
a foreign process connected to a socket, use
[method@Gio.Socket.get_credentials].
Since GLib 2.72, `GUnixCredentialMessage` is available on all platforms. It
requires underlying system support (such as Windows 10 with `AF_UNIX`) at run
time.
Before GLib 2.72, `<gio/gunixcredentialsmessage.h>` belonged to the UNIX-specific
GIO interfaces, thus you had to use the `gio-unix-2.0.pc` pkg-config file
when using it. This is no longer necessary since GLib 2.72.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCreates a new #GUnixCredentialsMessage with credentials matching the current processes.UnixCredentialsMessage
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
Gets the credentials stored in @message.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
static boolean
Checks if passing #GCredentials on a #GSocket is supported on this platform.static UnixCredentialsMessage
newWithCredentialsUnixCredentialsMessage
(Credentials credentials) Creates a new #GUnixCredentialsMessage holding @credentials.Von Klasse geerbte Methoden ch.bailu.gtk.gio.SocketControlMessage
deserialize, getLevel, getMsgType, getSize, serialize
Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
UnixCredentialsMessage
-
UnixCredentialsMessage
public UnixCredentialsMessage()Creates a new #GUnixCredentialsMessage with credentials matching the current processes.
-
-
Methodendetails
-
getClassHandler
-
newWithCredentialsUnixCredentialsMessage
public static UnixCredentialsMessage newWithCredentialsUnixCredentialsMessage(@Nonnull Credentials credentials) Creates a new #GUnixCredentialsMessage holding @credentials.- Parameter:
credentials
- A #GCredentials object.- Gibt zurück:
- a new #GUnixCredentialsMessage
-
getCredentials
Gets the credentials stored in @message.- Gibt zurück:
- A #GCredentials instance. Do not free, it is owned by @message.
-
isSupported
public static boolean isSupported()Checks if passing #GCredentials on a #GSocket is supported on this platform.- Gibt zurück:
- %TRUE if supported, %FALSE otherwise
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-