Package | Description |
---|---|
net.jini.security |
Provides mechanisms and abstractions for managing security, especially in the
presence of dynamically downloaded code.
|
net.jini.security.policy |
Provides an interface for security policy providers capable of dynamic
permission grants, an interface for security manager or policy providers
that use custom security context state, and a security policy provider
supporting dynamic permission grants.
|
net.jini.security.proxytrust |
Defines a trust verifier to support verification of proxies that use
dynamically downloaded code, implementation mechanisms to support the
verification of such proxies, and an exporter for remote objects that have
such proxies.
|
Modifier and Type | Method and Description |
---|---|
static SecurityContext |
Security.getContext()
Returns a snapshot of the current security context, which can be used to
restore the context at a later time.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Security.doAsPrivileged(Subject subject,
PrivilegedAction<T> action,
SecurityContext context)
Perform work as a particular Subject in the presence of untrusted code
for distributed systems.
|
static <T> T |
Security.doAsPrivileged(Subject subject,
PrivilegedExceptionAction<T> action,
SecurityContext context)
Perform work as a particular Subject in the presence of untrusted code
for distributed systems.
|
Modifier and Type | Method and Description |
---|---|
SecurityContext |
SecurityContextSource.getContext()
Returns a snapshot of the current security context, which can be used to
restore the context at a later time.
|
Modifier and Type | Method and Description |
---|---|
SecurityContext |
UntrustedObjectSecurityContext.getContext()
Returns a security context to use to restrict privileges when
invoking methods on untrusted objects.
|
SecurityContext |
BasicUntrustedObjectSecurityContext.getContext()
Returns a security context to use to restrict privileges when
invoking methods on untrusted objects.
|