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_3CountryCodeFrench Afars and Issasstatic final ISO3166_3CountryCodeNetherlands Antillesstatic final ISO3166_3CountryCodeBritish Antarctic Territorystatic final ISO3166_3CountryCodeBurmastatic final ISO3166_3CountryCodeByelorussian SSRstatic final ISO3166_3CountryCodeCzechoslovakiastatic final ISO3166_3CountryCodeSerbia and Montenegrostatic final ISO3166_3CountryCodeCanton and Enderbury Islandsstatic final ISO3166_3CountryCodeGerman Democratic Republicstatic final ISO3166_3CountryCodeDahomeystatic final ISO3166_3CountryCodeFrench Southern and Antarctic Territoriesstatic final ISO3166_3CountryCodeFrance, Metropolitanstatic final ISO3166_3CountryCodeGilbert Islandsstatic final ISO3166_3CountryCodeUpper Voltastatic final ISO3166_3CountryCodeJohnston Islandstatic final ISO3166_3CountryCodeMidway Islandsstatic final ISO3166_3CountryCodeNew Hebridesstatic final ISO3166_3CountryCodeDronning Maud Landstatic final ISO3166_3CountryCodeNeutral Zonestatic final ISO3166_3CountryCodePacific Islands (Trust Territory)static final ISO3166_3CountryCodeUnited States Miscellaneous Pacific Islandsstatic final ISO3166_3CountryCodePanama Canal Zonestatic final ISO3166_3CountryCodeSouthern Rhodesiastatic final ISO3166_3CountryCodeSikkimstatic final ISO3166_3CountryCodeUSSRstatic final ISO3166_3CountryCodeEast Timorstatic final ISO3166_3CountryCodeViet-Nam, Democratic Republic ofstatic final ISO3166_3CountryCodeWake Islandstatic final ISO3166_3CountryCodeYemen, Democraticstatic final ISO3166_3CountryCodeYugoslaviastatic final ISO3166_3CountryCodeZaireFields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the country name if available in theiso3166_3-codes.propertiesresource.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_3CountryCodeParses an ISO 3166-3 country code.Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.claims.CountryCode
length, toISO3166_1Alpha2CountryCode, toISO3166_1Alpha3CountryCode, toISO3166_3CountryCodeMethods 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,
nullif 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.propertiesresource.- Returns:
- The country name,
nullif not available.
-
equals
- Specified by:
equalsin 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.
-