O'Reilly logo

Java Security, 2nd Edition by Scott Oaks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Class com.sun.net.ssl.SSLPermission

Synopsis

This class is used to test for permissions within JSSE. You do not use it in programs, though you must specify it in the appropriate java.policy file if you want code to be able to perform certain operations. This is a basic permission; it requires a name but no actions.

The two valid names for this permission are “setHostnameVerifier” (needed to call the setHostnameVerifier( ) method of the HttpsURLConnection class) and “getSSLSessionContext” (needed to call the getSessionContext( ) method of Sun’s implementation of the SSLSocket class).

Class Definition

public final class com.sun.net.ssl.SSLPermission
    extends java.security.BasicPermission {

    // Constructors
    public SSLPermission(String, String);
    public SSLPermission(String);
}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required