AFUNIXSocket#getPeerCredentials()
| Modifier and Type | Field and Description |
|---|---|
| private long[] | gids
All GID values (or null for "not set"); the first being the primary one. |
| private long | pid
The PID, or -1 for "not set". |
| public static final AFUNIXSocketCredentials | SAME_PROCESS
Special instance, indicating that there is no remote peer, but the referenced object is from the same process. |
| private static final long | |
| private long | uid
The UID, or -1 for "not set". |
| private UUID | uuid
The UUID, or null for "not set". |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public long | Returns: The gid, or -1.Returns the primary "gid" (group ID), or |
| public long[] | Returns: The gids, or null.Returns all "gid" values (group IDs), or |
| public long | |
| public long | |
| public UUID | Returns: The UUID, or null.Returns the process' unique identifier, or |
| public int | |
| public boolean | Returns: true if no credentials set.Checks if neither of the possible peer credentials are set. |
| public static AFUNIXSocketCredentials | Returns: The credentials, ornull if unable to retrieve.Returns the |
| pack-priv void | |
| pack-priv void | |
| public String |
| gids | back to summary |
|---|---|
| private long[] gids All GID values (or null for "not set"); the first being the primary one. | |
| pid | back to summary |
|---|---|
| private long pid The PID, or -1 for "not set". | |
| SAME_PROCESS | back to summary |
|---|---|
| public static final AFUNIXSocketCredentials SAME_PROCESS Special instance, indicating that there is no remote peer, but the referenced object is from the same process. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| uid | back to summary |
|---|---|
| private long uid The UID, or -1 for "not set". | |
| uuid | back to summary |
|---|---|
| private UUID uuid The UUID, or null for "not set". | |
| AFUNIXSocketCredentials | back to summary |
|---|---|
| pack-priv AFUNIXSocketCredentials() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getGid | back to summary |
|---|---|
| public long getGid() Returns the primary "gid" (group ID), or
| |
| getGids | back to summary |
|---|---|
| public long[] getGids() Returns all "gid" values (group IDs), or
| |
| getPid | back to summary |
|---|---|
| public long getPid() Returns the "pid" (process ID), or
| |
| getUid | back to summary |
|---|---|
| public long getUid() Returns the "uid" (user ID), or
| |
| getUUID | back to summary |
|---|---|
| public UUID getUUID() Returns the process' unique identifier, or
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Checks if neither of the possible peer credentials are set.
| |
| remotePeerCredentials | back to summary |
|---|---|
| public static AFUNIXSocketCredentials remotePeerCredentials() Returns the Note For now, only RMI remote sessions are supported (RemoteServer sessions during a remote method invocation). If you want to retrieve the peer credentials for an RMI server, see junixsocket-rmi's RemotePeerInfo.
| |
| setGids | back to summary |
|---|---|
| pack-priv void setGids(long[] gids) | |
| setUUID | back to summary |
|---|---|
| pack-priv void setUUID(String uuidStr) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |