Class ISO3166_1AlphaCountryCode
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.id.Identifier
-
- com.nimbusds.openid.connect.sdk.assurance.claims.CountryCode
-
- com.nimbusds.openid.connect.sdk.assurance.claims.ISO3166_1AlphaCountryCode
-
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
- Direct Known Subclasses:
ISO3166_1Alpha2CountryCode
,ISO3166_1Alpha3CountryCode
public abstract class ISO3166_1AlphaCountryCode extends CountryCode
ISO 3166-1 alpha (letter-based) country code.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
-
Constructor Summary
Constructors Constructor Description ISO3166_1AlphaCountryCode(String value)
Creates a new ISO 3166-1 alpha (letter-based) country code.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String
getCountryName()
Returns the country name.-
Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.claims.CountryCode
equals, length, parse, toISO3166_1Alpha2CountryCode, toISO3166_1Alpha3CountryCode, toISO3166_3CountryCode
-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Constructor Detail
-
ISO3166_1AlphaCountryCode
public ISO3166_1AlphaCountryCode(String value)
Creates a new ISO 3166-1 alpha (letter-based) country code. Normalises the code to upper case.- Parameters:
value
- The country code value. Must be alphabetic.
-
-
Method Detail
-
getCountryName
public abstract String getCountryName()
Returns the country name.- Returns:
- The country name,
null
if not available.
-
-