public class IMSICondition
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
IMSI |
private static int |
IMSI_LENGTH |
private static java.lang.String |
ORG_OSGI_UTIL_GSM_IMSI |
| Modifier | Constructor and Description |
|---|---|
private |
IMSICondition() |
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.service.condpermadmin.Condition |
getCondition(org.osgi.framework.Bundle bundle,
org.osgi.service.condpermadmin.ConditionInfo conditionInfo)
Creates an IMSI condition object.
|
private static final java.lang.String ORG_OSGI_UTIL_GSM_IMSI
private static final java.lang.String IMSI
private static final int IMSI_LENGTH
public static org.osgi.service.condpermadmin.Condition getCondition(org.osgi.framework.Bundle bundle,
org.osgi.service.condpermadmin.ConditionInfo conditionInfo)
bundle - This parameter is ignored, as the IMSI number is a property
of the mobile subscriber and thus is the same for all bundles.conditionInfo - Contains the IMSI value against which to match the
subscriber's IMSI. Its ConditionInfo.getArgs() method
should return a String array with one value: the IMSI string. The
IMSI is 15 digits without hyphens. Limited pattern matching is
allowed: the string is 0 to 14 digits, followed by an asterisk (
*).*), then the beginning of the IMSI is
compared to the pattern.java.lang.IllegalArgumentException - If the IMSI is not a string of 15
digits, or 0 to 14 digits with an * at the end.