Package org.gnome.gio
Enum Class CredentialsType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<CredentialsType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum CredentialsType
extends Enum<CredentialsType>
implements Enumeration
Enumeration describing different kinds of native credential types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe native credentials type is astruct xucred
.The native credentials type is astruct cmsgcred
.Indicates an invalid native credential type.The native credentials type is astruct ucred
.The native credentials type is astruct unpcbid
.The native credentials type is astruct sockpeercred
.The native credentials type is aucred_t
.The native credentials type is a PIDDWORD
. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the CredentialsType classint
getValue()
Get the numeric value of this enumstatic CredentialsType
of
(int value) Create a new CredentialsType for the provided valuestatic CredentialsType
Returns the enum constant of this class with the specified name.static CredentialsType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
Indicates an invalid native credential type. -
LINUX_UCRED
The native credentials type is astruct ucred
. -
FREEBSD_CMSGCRED
The native credentials type is astruct cmsgcred
. -
OPENBSD_SOCKPEERCRED
The native credentials type is astruct sockpeercred
. Added in 2.30. -
SOLARIS_UCRED
The native credentials type is aucred_t
. Added in 2.40. -
NETBSD_UNPCBID
The native credentials type is astruct unpcbid
. Added in 2.42. -
APPLE_XUCRED
The native credentials type is astruct xucred
. Added in 2.66. -
WIN32_PID
The native credentials type is a PIDDWORD
. Added in 2.72.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new CredentialsType for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-