Android APIs
public class

ProtectionDomain

extends Object
java.lang.Object
   ↳ java.security.ProtectionDomain

Class Overview

Legacy security code; do not use.

Summary

Public Constructors
ProtectionDomain(CodeSource cs, PermissionCollection permissions)
ProtectionDomain(CodeSource cs, PermissionCollection permissions, ClassLoader cl, Principal[] principals)
Public Methods
final ClassLoader getClassLoader()
final CodeSource getCodeSource()
final PermissionCollection getPermissions()
final Principal[] getPrincipals()
boolean implies(Permission permission)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProtectionDomain (CodeSource cs, PermissionCollection permissions)

Added in API level 1

Parameters
cs CodeSource
permissions PermissionCollection

public ProtectionDomain (CodeSource cs, PermissionCollection permissions, ClassLoader cl, Principal[] principals)

Added in API level 1

Parameters
cs CodeSource
permissions PermissionCollection
cl ClassLoader
principals Principal

Public Methods

public final ClassLoader getClassLoader ()

Added in API level 1

Returns
ClassLoader

public final CodeSource getCodeSource ()

Added in API level 1

Returns
CodeSource

public final PermissionCollection getPermissions ()

Added in API level 1

public final Principal[] getPrincipals ()

Added in API level 1

Returns
Principal[]

public boolean implies (Permission permission)

Added in API level 1

Parameters
permission Permission
Returns
boolean