public final class MIDletIdentity
extends java.lang.Object
javax.microedition.event
.
The implementation is responsible for creating instances of MIDletIdentity
,
and creation of MIDletIdentity
instances is restricted. Applications
should not attempt to create instances of MIDletIdentity
.
This class provides identity information for a specific application including suite name, vendor, version, and security domain.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENTIFIED_THIRD_PARTY
Constant for the Identified Third Party domain.
|
static java.lang.String |
MANUFACTURER
Constant for the Manufacturer domain.
|
static java.lang.String |
OPERATOR
Constant for the Operator domain.
|
static java.lang.String |
UNIDENTIFIED_THIRD_PARTY
Constant for the Unidentified Third Party domain.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of the application
|
java.lang.String |
getSecurityDomain()
Get the name of the security domain for the application associated
with the specified
MIDletIdentity . |
java.lang.String |
getVendor()
Get vendor name of the application
|
java.lang.String |
getVersion()
Get version of the application
|
java.lang.String |
toString()
Returns the string representation of this
MIDletIdentity . |
public static final java.lang.String MANUFACTURER
getSecurityDomain()
iff the
application was bound to the Manufacturer domain at install time.public static final java.lang.String OPERATOR
getSecurityDomain()
iff the
application was bound to the Operator domain at install time.public static final java.lang.String IDENTIFIED_THIRD_PARTY
getSecurityDomain()
iff the
application was bound to the Identified Third Party domain
at install time.public static final java.lang.String UNIDENTIFIED_THIRD_PARTY
getSecurityDomain()
iff the
application was bound to the Unidentified Third Party domain
at install time.public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String getVendor()
public java.lang.String getSecurityDomain()
MIDletIdentity
. If the application
was bound to one of the predefined security domains, then one of the following
MUST be returned, as appropriate :
If the application was not bound to one of the predefined security domains,
then some String value other than those listed above MUST be returned.MIDletIdentity
was bound to when it was installed.public java.lang.String toString()
MIDletIdentity
.toString
in class java.lang.Object
getVendor()
+ "; " +
getName()
+ "; " +
getVersion()
.Copyright (c) 2013, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.