Code example for SSLPermission

0
     * unavailable. 
     */ 
    public SSLSessionContext getSessionContext() {
        SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            sm.checkPermission(new SSLPermission("getSSLSessionContext"));
        } 
        return sessionContext;
    } 
 
    /** 
     * Gives back a boolean flag signaling whether a SSL session is valid and 
     * available 
     * for resuming or joining or not. 
     * @return true if this session may be resumed. 
     */ 
    public boolean isValid() { 
        SSLSessionContext context = sessionContext;
        if (isValid
                && context != null
Connect your IDE to all the code out there  Get Codota for Java