Name

SSLPermission

Synopsis

This Permission class controls access to sensitive methods in the javax.net.ssl package. The two defined target names are “setHostnameVerifier” and “getSSLSessionContext”. The first is required in order to call HttpURLConnection.setHostnameVerifier( ) and HttpURLConnection.setDefaultHostnameVerifier( ). The second permission target is required in order to call SSLSession.getSessionContext( ).

javax.net.ssl.SSLPermission

Figure 18-10. javax.net.ssl.SSLPermission

public final class SSLPermission extends java.security.BasicPermission {
// Public Constructors
     public SSLPermission(String name);  
     public SSLPermission(String name, String actions);  
}

Get Java in a Nutshell, 5th 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.