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

@Immutable public class Gender extends Identifier
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 Details

    • FEMALE

      public static final Gender FEMALE
      Female gender claim value.
    • MALE

      public static final Gender MALE
      Male gender claim value.
  • Constructor Details

    • Gender

      public Gender(String value)
      Creates a new gender with the specified value.
      Parameters:
      value - The gender value. Must not be null.
  • Method Details