Class MSISDN
java.lang.Object
com.nimbusds.oauth2.sdk.id.Identifier
com.nimbusds.openid.connect.sdk.assurance.claims.MSISDN
- All Implemented Interfaces:
Serializable
,Comparable<Identifier>
,net.minidev.json.JSONAware
Mobile subscriber ISDN number.
Example where 91 is the country code, 8369 is the national destination code and 110173 is the subscriber number:
919825098250
Related specifications:
- OpenID Connect for Identity Assurance 1.0
- ITU-T E.164
- See Also:
-
Field Summary
FieldsFields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
Field Details
-
MAX_LENGTH
The maximum length of an MSISDN.- See Also:
-
-
Constructor Details
-
MSISDN
Creates a new mobile subscriber ISDN number with the specified value.- Parameters:
value
- The MSISDN value. Must not benull
.
-
-
Method Details
-
equals
- Overrides:
equals
in classIdentifier
-
parse
Parses an mobile subscriber ISDN number.- Parameters:
s
- The string to parse. Must not benull
.- Returns:
- The mobile subscriber ISDN number.
- Throws:
ParseException
- If parsing failed.
-