Code example for SSLSessionContext

Methods: getSessionTimeout

0
     */ 
    public boolean isValid() { 
        SSLSessionContext context = sessionContext;
        if (isValid
                && context != null
                && context.getSessionTimeout() != 0
                && getCreationTime() + (context.getSessionTimeout() * 1000)
                    < System.currentTimeMillis()) {
            isValid = false;
        } 
        return isValid;
    } 
 
    /** 
     * It invalidates a SSL session forbidding any resumption. 
     */ 
    public void invalidate() { 
        isValid = false;
        sessionContext = null;
    } 
Contextual code suggestions in your IDE  Get Codota for Java