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);
}

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.