src/net/java/sip/communicator/impl/gui/main/call/CallInfoFrame.java
/**
     * Invoked when user clicks a link in the editor pane.
     * @param e the event
     */
Invoked when user clicks a link in the editor pane.
@param e the event
Invoked when user clicks a link in the editor pane . @param e the event
public void hyperlinkUpdate(HyperlinkEvent e)
    {
        if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED
                        && CERTIFICATE_URL.equals(e.getDescription()))
        {
            List<Call> calls = callConference.getCalls();
            if (!calls.isEmpty())
            {
                Call aCall = calls.get(0);
                Certificate[] chain = aCall.getProtocolProvider()
                        .getOperationSet(OperationSetTLS.class)
                        .getServerCertificates();
                ViewCertificateFrame certFrame =
                        new ViewCertificateFrame(chain, null,
                            resources.getI18NString(
                            "service.gui.callinfo.TLS_CERTIFICATE_CONTENT"));
                certFrame.setVisible(true);
            }
        }
    }
public void hyperlinkUpdate ( HyperlinkEvent e ) { if ( e . getEventType ( ) == HyperlinkEvent . EventType . ACTIVATED && CERTIFICATE_URL . equals ( e . getDescription ( ) ) ) { List < Call > calls = callConference . getCalls ( ) ; if ( ! calls . isEmpty ( ) ) { Call aCall = calls . get ( 0 ) ; Certificate [ ] chain = aCall . getProtocolProvider ( ) . getOperationSet ( OperationSetTLS . class ) . getServerCertificates ( ) ; ViewCertificateFrame certFrame = new ViewCertificateFrame ( chain , null , resources . getI18NString ( "service.gui.callinfo.TLS_CERTIFICATE_CONTENT" ) ) ; certFrame . setVisible ( true ) ; } } }
Invoked when user clicks a link in the editor pane.
Invoked when user clicks a link in the editor pane .
// Handle "View certificate" link