Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.library.model.security
Class ProtectionDomain

java.lang.Object
  extended by org.eclipse.mtj.core.library.model.security.ProtectionDomain

public class ProtectionDomain
extends Object

A protection domain is a way to differentiate between downloaded MIDlet suites based on the entity that signed the MIDlet suite, and to grant or make available to a MIDlet suite a set of permissions. A domain binds a Protection Domain Root Certificate to a set of permissions.

Since:
0.9.1

Nested Class Summary
static class ProtectionDomain.ProtectionDomainType
           
 
Constructor Summary
ProtectionDomain(ProtectionDomain.ProtectionDomainType protectionDomain)
          Creates a new ProtectionDomain.
ProtectionDomain(String protectionDomainType)
          Creates a new ProtectionDomain.
 
Method Summary
 boolean equals(Object obj)
           
 ProtectionDomain.ProtectionDomainType getProtectionDomainType()
          Return the current protection domain type.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtectionDomain

public ProtectionDomain(ProtectionDomain.ProtectionDomainType protectionDomain)
Creates a new ProtectionDomain.

Parameters:
protectionDomain - a protection domain type.

ProtectionDomain

public ProtectionDomain(String protectionDomainType)
                 throws IllegalArgumentException
Creates a new ProtectionDomain.

Parameters:
protectionDomainType - one of the following string values: MANUFACTURER | OPERATOR | THIRD_PARTY | UNTRUSTED
Throws:
IllegalArgumentException - if protectionDomainType is null or different from one of the following values: MANUFACTURER | OPERATOR | THIRD_PARTY | UNTRUSTED.
Method Detail

getProtectionDomainType

public ProtectionDomain.ProtectionDomainType getProtectionDomainType()
Return the current protection domain type.

Returns:
the protectionDomain the protection domain type for this instance.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Mobile Tools for Java
Release 1.0