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 |
Historically, proxy trust relied on the Java sandbox, however with the
plethora of security problems relating to serialization.
|
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.
|
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.