com.ptc.net.auth
Class NetAuthenticatorInstaller

java.lang.Object
  extended by com.ptc.net.auth.NetAuthenticatorInstaller

public final class NetAuthenticatorInstaller
extends Object

Simple utility to install a GUI (dialog) based Authenticator. Only in the Java Plug-In and Java Web Start does Java install such an Authenticator automatically. In those environments, this class' installation attempt will be rejected by the security manager. This class will silently ignore such failures.

Supported API: true

Extendable: false


Method Summary
static void install()
          Attempts to install a GUI (dialog) based Authenticator instance, but does not wrap this attempt in a PrivilegedAction block.
static void install(boolean usePrivilegedAction)
          Attempts to install a GUI (dialog) based Authenticator instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

install

public static void install()
Attempts to install a GUI (dialog) based Authenticator instance, but does not wrap this attempt in a PrivilegedAction block. Instead this attempt will silently fail when a SecurityManager is in place (e.g. under the Java Plug In or Java Web Start where replacing the built in authenticator is a bad idea).

Supported API: true


install

public static void install(boolean usePrivilegedAction)
Attempts to install a GUI (dialog) based Authenticator instance.

Supported API: true

Parameters:
usePrivilegedAction - Whether this attempt should be wrapped in a PrivilegedAction block; see install() for more information