Package com.ptc.net.auth
Class NetAuthenticatorInstaller
java.lang.Object
com.ptc.net.auth.NetAuthenticatorInstaller
Simple utility to install a GUI (dialog) based
Supported API: true
Extendable: false
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
Modifier and TypeMethodDescriptionstatic voidinstall()Attempts to install a GUI (dialog) basedAuthenticatorinstance, but does not wrap this attempt in a PrivilegedAction block.static voidinstall(boolean usePrivilegedAction) Attempts to install a GUI (dialog) basedAuthenticatorinstance.
-
Method Details
-
install
public static void install()Attempts to install a GUI (dialog) basedAuthenticatorinstance, 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) - Parameters:
usePrivilegedAction- Whether this attempt should be wrapped in a PrivilegedAction block; see install() for more information
-