Java 8 SSLHandshakeException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 SSLHandshakeException class.

This code example shows how to use the following methods:getCause, getMessage
     * Assertion: constructs SSLHandshakeException when <code>msg</code> is 
     * null 
     */ 
    public void testSSLHandshakeException02() { 
        String msg = null;
        SSLHandshakeException tE = new SSLHandshakeException(msg);
        assertNull("getMessage() must return null.", tE.getMessage());
        assertNull("getCause() must return null", tE.getCause());
    } 
} 
6
CodeRank
This code example shows how to use the following methods:
     * Sends fatal alert 
     * @param description 
     * @param reason 
     */ 
    protected void fatalAlert(byte description, String reason) { 
        throw new AlertException(description, new SSLHandshakeException(reason)); 
    } 
 
    /** 
     * Sends fatal alert 
     * @param description 
     * @param reason 
     * @param cause 
     */ 
    protected void fatalAlert(byte description, String reason, Throwable cause) { 
        throw new AlertException(description, new SSLException(reason, cause)); 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:
     * Sends fatal alert 
     * @param description 
     * @param reason 
     */ 
    protected void fatalAlert(byte description, String reason) { 
        throw new AlertException(description, new SSLHandshakeException(reason)); 
    } 
 
    /** 
     * Sends fatal alert 
     * @param description 
     * @param reason 
     * @param cause 
     */ 
    protected void fatalAlert(byte description, String reason, Throwable cause) { 
        throw new AlertException(description, new SSLException(reason, cause)); 
    } 
} 
5
CodeRank
This code example shows how to use the following methods:
     * Sends fatal alert 
     * @param description 
     * @param reason 
     */ 
    protected void fatalAlert(byte description, String reason) { 
        throw new AlertException(description, new SSLHandshakeException(reason)); 
    } 
 
    /** 
     * Sends fatal alert 
     * @param description 
     * @param reason 
     * @param cause 
     */ 
    protected void fatalAlert(byte description, String reason, Throwable cause) { 
        throw new AlertException(description, new SSLException(reason, cause)); 
    } 
} 
5
CodeRank
This code example shows how to use the following methods:
     * Sends fatal alert 
     * @param description 
     * @param reason 
     */ 
    protected void fatalAlert(byte description, String reason) { 
        throw new AlertException(description, new SSLHandshakeException(reason)); 
    } 
 
    /** 
     * Sends fatal alert 
     * @param description 
     * @param reason 
     * @param cause 
     */ 
    protected void fatalAlert(byte description, String reason, Throwable cause) { 
        throw new AlertException(description, new SSLException(reason, cause)); 
    } 
} 
5
CodeRank
This code example shows how to use the following methods:
            "Long message for Exception. Long message for Exception. Long message for Exception." }; 
 
    @Override 
    protected Object[] getData() { 
        return new Object[] { new SSLHandshakeException(null), 
                new SSLHandshakeException(msgs[0]), new SSLHandshakeException(msgs[1]) }; 
    } 
 
} 
5
CodeRank
This code example shows how to use the following methods:
            "Long message for Exception. Long message for Exception. Long message for Exception." }; 
 
    @Override 
    protected Object[] getData() { 
        return new Object[] { new SSLHandshakeException(null), 
                new SSLHandshakeException(msgs[0]), new SSLHandshakeException(msgs[1]) }; 
    } 
 
    public static void main(String[] args) { 
        junit.textui.TestRunner.run(SSLHandshakeExceptionTest.class); 
    } 
} 
4
CodeRank
See Code Examples for Java 8 SSLHandshakeException Methods: