|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jini.security.proxytrust.BasicUntrustedObjectSecurityContext
public final class BasicUntrustedObjectSecurityContext
A basic trust verifier context element that provides a security context to use to restrict privileges when invoking methods on untrusted objects, based on a specified set of permissions.
Constructor Summary | |
---|---|
BasicUntrustedObjectSecurityContext(Permission[] permissions)
Constructs an instance with the specified permissions. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Returns true if the specified object and this object
are both instances of this class that were constructed with equivalent
permissions. |
SecurityContext |
getContext()
Returns a security context to use to restrict privileges when invoking methods on untrusted objects. |
int |
hashCode()
Returns a hash code value for this object. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicUntrustedObjectSecurityContext(Permission[] permissions)
getContext
will be restricted
to the permissions granted by default to all code plus the additional
specified permissions. The argument passed to the constructor is
neither modified nor retained; subsequent changes to that argument
have no effect on the instance created.
permissions
- additional permissions to allow, or
null
if no additional permissions should be allowed
NullPointerException
- if any element of the argument is
null
Method Detail |
---|
public SecurityContext getContext()
Security.getContext
) with an additional
protection domain combined into the access control context that
contains an empty CodeSource
(null
location and
certificates), a permission collection containing the permissions
used to construct this instance, null
class loader, and
null
principals.
getContext
in interface UntrustedObjectSecurityContext
public String toString()
toString
in class Object
public boolean equals(Object obj)
true
if the specified object and this object
are both instances of this class that were constructed with equivalent
permissions. The order of permissions in the array that was passed to
the constructor is not significant.
equals
in class Object
public int hashCode()
hashCode
in class Object
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |