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
@Immutable public final class MSISDN extends Identifier
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, section 4.1.
- ITU-T E.164
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_LENGTH
The maximum length of an MSISDN.-
Fields inherited from class com.nimbusds.oauth2.sdk.id.Identifier
DEFAULT_BYTE_LENGTH, secureRandom
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
static MSISDN
parse(String s)
Parses an mobile subscriber ISDN number.-
Methods inherited from class com.nimbusds.oauth2.sdk.id.Identifier
compareTo, getValue, hashCode, toJSONString, toString, toStringList
-
-
-
-
Field Detail
-
MAX_LENGTH
public static final int MAX_LENGTH
The maximum length of an MSISDN.- See Also:
- Constant Field Values
-
-
Method Detail
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classIdentifier
-
parse
public static MSISDN parse(String s) throws ParseException
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.
-
-