Class Gender
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.openid.connect.sdk.claims.Gender
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
The end-user's gender: Values defined by the OpenID Connect specification
are
FEMALE
and MALE
(gender
). Other values may be
used when neither of the defined values are applicable.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Gender
Female gender claim value.static final Gender
Male gender claim value.Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
Field Details
-
FEMALE
Female gender claim value. -
MALE
Male gender claim value.
-
-
Constructor Details
-
Gender
Creates a new gender with the specified value.- Parameters:
value
- The gender value. Must not benull
.
-
-
Method Details
-
equals
- Overrides:
equals
in classIdentifier
-