Class ISO3166_3CountryCode
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_3CountryCode
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
ISO 3166-3 country code for former countries and territories.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ISO3166_3CountryCode
French Afars and Issasstatic final ISO3166_3CountryCode
Netherlands Antillesstatic final ISO3166_3CountryCode
British Antarctic Territorystatic final ISO3166_3CountryCode
Burmastatic final ISO3166_3CountryCode
Byelorussian SSRstatic final ISO3166_3CountryCode
Czechoslovakiastatic final ISO3166_3CountryCode
Serbia and Montenegrostatic final ISO3166_3CountryCode
Canton and Enderbury Islandsstatic final ISO3166_3CountryCode
German Democratic Republicstatic final ISO3166_3CountryCode
Dahomeystatic final ISO3166_3CountryCode
French Southern and Antarctic Territoriesstatic final ISO3166_3CountryCode
France, Metropolitanstatic final ISO3166_3CountryCode
Gilbert Islandsstatic final ISO3166_3CountryCode
Upper Voltastatic final ISO3166_3CountryCode
Johnston Islandstatic final ISO3166_3CountryCode
Midway Islandsstatic final ISO3166_3CountryCode
New Hebridesstatic final ISO3166_3CountryCode
Dronning Maud Landstatic final ISO3166_3CountryCode
Neutral Zonestatic final ISO3166_3CountryCode
Pacific Islands (Trust Territory)static final ISO3166_3CountryCode
United States Miscellaneous Pacific Islandsstatic final ISO3166_3CountryCode
Panama Canal Zonestatic final ISO3166_3CountryCode
Southern Rhodesiastatic final ISO3166_3CountryCode
Sikkimstatic final ISO3166_3CountryCode
USSRstatic final ISO3166_3CountryCode
East Timorstatic final ISO3166_3CountryCode
Viet-Nam, Democratic Republic ofstatic final ISO3166_3CountryCode
Wake Islandstatic final ISO3166_3CountryCode
Yemen, Democraticstatic final ISO3166_3CountryCode
Yugoslaviastatic final ISO3166_3CountryCode
ZaireFields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the country name if available in theiso3166_3-codes.properties
resource.Returns the first component (the first two letters) representing the former country code.Returns the former country code (the first component).Returns the new country code (the second component), unless the former country is divided and there is no single successor country (indicated by an "HH" or "XX" code).Returns the second component (the last two letters).static ISO3166_3CountryCode
Parses an ISO 3166-3 country code.Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.claims.CountryCode
length, toISO3166_1Alpha2CountryCode, toISO3166_1Alpha3CountryCode, toISO3166_3CountryCode
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
Field Details
-
BQAQ
British Antarctic Territory -
BUMM
Burma -
BYAA
Byelorussian SSR -
CTKI
Canton and Enderbury Islands -
CSHH
Czechoslovakia -
DYBJ
Dahomey -
NQAQ
Dronning Maud Land -
TPTL
East Timor -
FXFR
France, Metropolitan -
AIDJ
French Afars and Issas -
FQHH
French Southern and Antarctic Territories -
DDDE
German Democratic Republic -
GEHH
Gilbert Islands -
JTUM
Johnston Island -
MIUM
Midway Islands -
ANHH
Netherlands Antilles -
NTHH
Neutral Zone -
NHVU
New Hebrides -
PCHH
Pacific Islands (Trust Territory) -
PZPA
Panama Canal Zone -
CSXX
Serbia and Montenegro -
SKIN
Sikkim -
RHZW
Southern Rhodesia -
PUUM
United States Miscellaneous Pacific Islands -
HVBF
Upper Volta -
SUHH
USSR -
VDVN
Viet-Nam, Democratic Republic of -
WKUM
Wake Island -
YDYE
Yemen, Democratic -
YUCS
Yugoslavia -
ZRCD
Zaire
-
-
Constructor Details
-
ISO3166_3CountryCode
Creates a new ISO 3166-3 country code. Normalises the code to upper case.- Parameters:
value
- The country code value, must be four-letter.
-
-
Method Details
-
getFormerCode
Returns the former country code (the first component).- Returns:
- The former country code as an ISO 3166-1 alpha-2 (two-letter) country code.
-
getNewCode
Returns the new country code (the second component), unless the former country is divided and there is no single successor country (indicated by an "HH" or "XX" code).- Returns:
- The new country code as an ISO 3166-1 alpha-2 (two-letter)
country code,
null
if the former country is divided. and there is no single successor country.
-
getFirstComponentString
Returns the first component (the first two letters) representing the former country code.- Returns:
- The first component as a string.
-
getSecondComponentString
Returns the second component (the last two letters).- Returns:
- The second component as a string.
-
getCountryName
Returns the country name if available in theiso3166_3-codes.properties
resource.- Returns:
- The country name,
null
if not available.
-
equals
- Specified by:
equals
in classCountryCode
-
parse
Parses an ISO 3166-3 country code.- Parameters:
s
- The string to parse. Must not benull
.- Returns:
- The ISO 3166-3 country code.
- Throws:
ParseException
- If parsing failed.
-