public class SecurityManager.VirtualConnectionSecurityManager
extends java.lang.Object
| Constructor and Description |
|---|
VirtualConnectionSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
SecurityContext |
createSecurityContext(java.lang.String identity)
Create a security context for the given identity.
|
java.lang.Object |
getEffectiveContext()
Get the effective security context associated with the current thread,
if any.
|
java.lang.String |
getIdentity(java.lang.Object key)
Returns the subject ID associated with the passed key.
|
public java.lang.Object getEffectiveContext()
throws RestrictedUseException
null if either
this is not a server-side security manager, or there is no
effective security context associated with the current
thread.RestrictedUseException - if called improperly.public java.lang.String getIdentity(java.lang.Object key)
throws RestrictedUseException
The subject ID returned is in the form processID/userID. Either part can be empty. No group IDs are returned as they must be uniquely identifiable by userID.
Note that the security cache has to be taken from the passed key which is a SecurityContext, as the correct identity of the key is bound to the security cache generation.
Restricted use. This method checks the caller to be the "authenticateRemote" method of the com.goldencode.p2j.net.Dispatcher class.
key - a key to a security context to be queriedRestrictedUseException - if called improperlypublic SecurityContext createSecurityContext(java.lang.String identity) throws RestrictedUseException
identity - The 'process/user' encoded identity.RestrictedUseException