Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.library.model.security
Enum ProtectionDomain.ProtectionDomainType

java.lang.Object
  extended by java.lang.Enum<ProtectionDomain.ProtectionDomainType>
      extended by org.eclipse.mtj.core.library.model.security.ProtectionDomain.ProtectionDomainType
All Implemented Interfaces:
Serializable, Comparable<ProtectionDomain.ProtectionDomainType>
Enclosing class:
ProtectionDomain

public static enum ProtectionDomain.ProtectionDomainType
extends Enum<ProtectionDomain.ProtectionDomainType>

Since:
0.9.1

Enum Constant Summary
MANUFACTURER
          The trusted manufacturer Protection Domain Root Certificate is used to verify manufacturer MIDlet suites.
OPERATOR
          A trusted operator Protection Domain Root Certificate is used to verify operator MIDlet suites.
THIRD_PARTY
          A trusted third party Protection Domain Root Certificate is used to verify third party MIDlet suites.
UNTRUSTED
          MIDlets suites that are unsigned will belong to the Untrusted domain.
 
Method Summary
static ProtectionDomain.ProtectionDomainType getProtectionDomainType(String protectionDomain)
          Get the correspondent ProtectionDomain.ProtectionDomainType value for the protectionDomain string.
static ProtectionDomain.ProtectionDomainType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProtectionDomain.ProtectionDomainType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MANUFACTURER

public static final ProtectionDomain.ProtectionDomainType MANUFACTURER
The trusted manufacturer Protection Domain Root Certificate is used to verify manufacturer MIDlet suites.


OPERATOR

public static final ProtectionDomain.ProtectionDomainType OPERATOR
A trusted operator Protection Domain Root Certificate is used to verify operator MIDlet suites.


THIRD_PARTY

public static final ProtectionDomain.ProtectionDomainType THIRD_PARTY
A trusted third party Protection Domain Root Certificate is used to verify third party MIDlet suites.


UNTRUSTED

public static final ProtectionDomain.ProtectionDomainType UNTRUSTED
MIDlets suites that are unsigned will belong to the Untrusted domain.

Method Detail

values

public static final ProtectionDomain.ProtectionDomainType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ProtectionDomain.ProtectionDomainType c : ProtectionDomain.ProtectionDomainType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ProtectionDomain.ProtectionDomainType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

getProtectionDomainType

public static ProtectionDomain.ProtectionDomainType getProtectionDomainType(String protectionDomain)
                                                                     throws IllegalArgumentException
Get the correspondent ProtectionDomain.ProtectionDomainType value for the protectionDomain string.

Parameters:
protectionDomain - one of the following values: MANUFACTURER | OPERATOR | THIRD_PARTY | UNTRUSTED
Returns:
the correspondent ProtectionDomain.ProtectionDomainType for the protectionDomain string.
Throws:
IllegalArgumentException - when the protectionDomain string is different from one of the following values: MANUFACTURER | OPERATOR | THIRD_PARTY | UNTRUSTED;

Mobile Tools for Java
Release 1.0