com.nimbusds.openid.connect.sdk.claims
Class Gender

java.lang.Object
  extended by com.nimbusds.oauth2.sdk.id.Identifier
      extended by com.nimbusds.openid.connect.sdk.claims.Gender
All Implemented Interfaces:
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. This class is immutable.

Author:
Vladimir Dzhuvinov

Field Summary
static Gender FEMALE
          Female gender claim value.
static Gender MALE
          Male gender claim value.
 
Constructor Summary
Gender(String value)
          Creates a new gender with the specified value.
 
Method Summary
 boolean equals(Object object)
          Overrides Object.equals().
 
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
getValue, hashCode, toJSONString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FEMALE

public static final Gender FEMALE
Female gender claim value.


MALE

public static final Gender MALE
Male gender claim value.

Constructor Detail

Gender

public Gender(String value)
Creates a new gender with the specified value.

Parameters:
value - The gender value. Must not be null.
Method Detail

equals

public boolean equals(Object object)
Description copied from class: Identifier
Overrides Object.equals().

Specified by:
equals in class Identifier
Parameters:
object - The object to compare to.
Returns:
true if the objects have the same value, otherwise false.


Copyright © 2013 NimbusDS. All Rights Reserved.