public class InitialPlatformContext extends java.lang.Object implements PlatformContext
Notifier| Constructor and Description |
|---|
InitialPlatformContext()
Deprecated.
Use the contructor with a Subject parameter.
|
InitialPlatformContext(java.lang.String platformClassName)
Deprecated.
Use the contructor with a Subject parameter.
|
InitialPlatformContext(javax.security.auth.Subject subject)
Constructs the InitialPlatformContext by reading the implementation class
from the platformcontext.properties file.
|
InitialPlatformContext(javax.security.auth.Subject subject,
java.lang.String platformClassName)
Constructs the InitialPlatformContext with the supplied PlatformContext
implementation class.
|
| Modifier and Type | Method and Description |
|---|---|
javax.naming.directory.DirContext |
getDirectoryContext()
Retrieves a new directory naming context that can be used to query the
platform's data store.
|
Notifier |
getNotifier()
Retrieves a new Notifier for notifying the platform or request responses.
|
UnsolicitedEventProcessor |
getUnsolicitedEventProcessor()
Retrieves a new UnsolicitedEventProcessor for processing unsolicited
notification requests.
|
void |
setSubject(javax.security.auth.Subject subject)
Sets the subject for authentication and authorization.
|
public InitialPlatformContext(javax.security.auth.Subject subject)
throws RemoteServicesException
subject - The subject should already be authenticated.RemoteServicesException - Thrown if unable to construct a new
InitialPlatformContext.public InitialPlatformContext(javax.security.auth.Subject subject,
java.lang.String platformClassName)
throws RemoteServicesException
subject - The subject should already be authenticated.platformClassName - The full classname used to instantiate the implementation.RemoteServicesException - Thrown if unable to construct a new
InitialPlatformContext.public InitialPlatformContext()
throws RemoteServicesException
RemoteServicesException - Thrown if unable to construct a new
InitialPlatformContext.public InitialPlatformContext(java.lang.String platformClassName)
throws RemoteServicesException
platformClassName - The full classname of the Java class that implements
PlatformContext. This parameter cannot be null.RemoteServicesException - Thrown if unable to construct.public Notifier getNotifier() throws RemoteServicesException
PlatformContextgetNotifier in interface PlatformContextRemoteServicesException - Thrown on error.public UnsolicitedEventProcessor getUnsolicitedEventProcessor() throws RemoteServicesException
PlatformContextgetUnsolicitedEventProcessor in interface PlatformContextRemoteServicesException - Thrown on errorpublic javax.naming.directory.DirContext getDirectoryContext()
throws javax.naming.NamingException
PlatformContextgetDirectoryContext in interface PlatformContextjavax.naming.NamingException - Thrown if unable to create the DirContext.public void setSubject(javax.security.auth.Subject subject)
PlatformContextsetSubject in interface PlatformContextsubject - The subject for authentication and authorization. subject
cannot be null.