public TlsFatalAlert(short alertDescription, Throwable alertCause) { super(AlertDescription.getText(alertDescription), alertCause); this.alertDescription = alertDescription; }
public static String getText(short alertDescription) { return getName(alertDescription) + "(" + alertDescription + ")"; } }
public TlsFatalAlertReceived(short alertDescription) { super(AlertDescription.getText(alertDescription), null); this.alertDescription = alertDescription; }
public static String getText(short alertDescription) { return getName(alertDescription) + "(" + alertDescription + ")"; } }
public TlsFatalAlert(short alertDescription, Throwable alertCause) { super(AlertDescription.getText(alertDescription)); this.alertDescription = alertDescription; this.alertCause = alertCause; }
public void notifyAlertReceived(short alertLevel, short alertDescription) { PrintStream out = (alertLevel == AlertLevel.fatal) ? System.err : System.out; out.println("DTLS server received alert: " + AlertLevel.getText(alertLevel) + ", " + AlertDescription.getText(alertDescription)); out.close(); }
public void notifyAlertReceived(short alertLevel, short alertDescription) { PrintStream out = (alertLevel == AlertLevel.fatal) ? System.err : System.out; out.println("DTLS client received alert: " + AlertLevel.getText(alertLevel) + ", " + AlertDescription.getText(alertDescription)); out.close(); }
public void notifyAlertRaised(short alertLevel, short alertDescription, String message, Throwable cause) { PrintStream out = (alertLevel == AlertLevel.fatal) ? System.err : System.out; out.println("DTLS server raised alert: " + AlertLevel.getText(alertLevel) + ", " + AlertDescription.getText(alertDescription)); if (message != null) { out.println(message); } if (cause != null) { cause.printStackTrace(out); } }
public void notifyAlertRaised(short alertLevel, short alertDescription, String message, Throwable cause) { PrintStream out = (alertLevel == AlertLevel.fatal) ? System.err : System.out; out.println("DTLS client raised alert: " + AlertLevel.getText(alertLevel) + ", " + AlertDescription.getText(alertDescription)); if (message != null) { out.println(message); } if (cause != null) { cause.printStackTrace(out); } }