| java.lang.Object com.sun.midp.security.SecurityInitializerImpl
SecurityInitializerImpl | public class SecurityInitializerImpl (Code) | | The class implements security initializer logic common for core
subsystems and for optional JSRs. Using this implmentation JSRs
can easily introduce own security initializers for redispatching
security tokens within JSR subsystem.
|
Method Summary | |
boolean | isTrusted(Object object) Check whether object is the instance of a trusted class, that means
the object owner has the right to request for a security token. | public SecurityToken | requestToken(ImplicitlyTrustedClass trusted) Request security token using trusted object instance.
Note that the imposibility to create trusted objects
for untrusted requesters is the only guarantee of
secure tokens dispatching. |
SecurityInitializerImpl | public SecurityInitializerImpl(SecurityToken token, String[] trusted)(Code) | | Create instance of SecurityInitializerImpl with a given token and
list of trusted class names
Parameters: token - security token to hold Parameters: trusted - names of trusted classes |
isTrusted | boolean isTrusted(Object object)(Code) | | Check whether object is the instance of a trusted class, that means
the object owner has the right to request for a security token.
The optimized implementation for this method can be provided in
VM specific way.
Note, the implementation allows only single request for
SecurityToken for each trusted class, the class
is removed from the trusted list after token hand out.
Parameters: object - instance of the trusted class known to the initializer true if the object belongs to trusted class, false otherwise |
requestToken | public SecurityToken requestToken(ImplicitlyTrustedClass trusted)(Code) | | Request security token using trusted object instance.
Note that the imposibility to create trusted objects
for untrusted requesters is the only guarantee of
secure tokens dispatching.
|
|
|