FileDocCategorySizeDatePackage
HandshakeCompletedEvent.javaAPI DocAndroid 1.5 API5029Wed May 06 22:41:06 BST 2009javax.net.ssl

HandshakeCompletedEvent

public class HandshakeCompletedEvent extends EventObject implements Serializable
The event object encapsulating the information about a completed SSL handshake on a SSL connection.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
The 5.0 spec. doesn't declare this serialVersionUID field In order to be compatible it is explicitly declared here
private transient SSLSession
session
Constructors Summary
public HandshakeCompletedEvent(SSLSocket sock, SSLSession s)
Creates a new {@code HandshakeCompletedEvent} with the specified SSL socket and SSL session.

param
sock the SSL socket.
param
s the SSL session.
since
Android 1.0


                                                          
         
        super(sock);
        session = s;
    
Methods Summary
public java.lang.StringgetCipherSuite()
Returns the name of the cipher suite negotiated during this handshake.

return
the name of the cipher suite negotiated during this handshake.
since
Android 1.0

        return session.getCipherSuite();
    
public java.security.cert.Certificate[]getLocalCertificates()
Returns the list of local certificates used during the handshake. These certificates were sent to the peer.

return
Returns the list of certificates used during the handshake with the local identity certificate followed by CAs, or {@code null} if no certificates were used during the handshake.
since
Android 1.0

        return session.getLocalCertificates();
    
public java.security.PrincipalgetLocalPrincipal()
Returns the {@code Principal} used to identify during the handshake.

return
the {@code Principal} used to identify during the handshake.
since
Android 1.0

        return session.getLocalPrincipal();
    
public javax.security.cert.X509Certificate[]getPeerCertificateChain()
Returns the list of certificates identifying the peer. The peer's identity certificate is followed by the validated certificate authority certificates.

Replaced by: {@link #getPeerCertificates()}

return
the list of certificates identifying the peer
throws
SSLPeerUnverifiedException if the identity of the peer has not been verified.
since
Android 1.0

        return session.getPeerCertificateChain();
    
public java.security.cert.Certificate[]getPeerCertificates()
Return the list of certificates identifying the peer during the handshake.

return
the list of certificates identifying the peer with the peer's identity certificate followed by CAs.
throws
SSLPeerUnverifiedException if the identity of the peer has not been verified.
since
Android 1.0

        return session.getPeerCertificates();
    
public java.security.PrincipalgetPeerPrincipal()
Returns the {@code Principal} identifying the peer.

return
the {@code Principal} identifying the peer.
throws
SSLPeerUnverifiedException if the identity of the peer has not been verified.
since
Android 1.0

        return session.getPeerPrincipal();
    
public javax.net.ssl.SSLSessiongetSession()
Returns the SSL session associated with this event.

return
the SSL session associated with this event.
since
Android 1.0

        return session;
    
public javax.net.ssl.SSLSocketgetSocket()
Returns the SSL socket that produced this event.

return
the SSL socket that produced this event.
since
Android 1.0

        return (SSLSocket)this.source;