Class HostInfo

  • All Implemented Interfaces:
    Serializable

    public class HostInfo
    extends Object
    implements Serializable
    Information about the remote host. Persisting this in memcache or similar storage can improve performance on future TLS connections by skipping roundtrips and reducing CPU use in handshake. This class is used in both server and client mode. AprSocketContextLitener.getPeer(name) can be used to read from an external storage. TODO: also save the SPDY persistent settings here. TODO: fix tickets, don't seem to work anymore.
    See Also:
    Serialized Form
    • Field Detail

      • port

        public int port
      • secure

        public boolean secure
      • certs

        public byte[][] certs
        Raw cert data (x.509 format). This is retrieved when a full handshake happens - if session reuse or tickets are used you'll not receive the certs again.
      • ticket

        public byte[] ticket
      • ticketLen

        public int ticketLen
      • sessionId

        public String sessionId
      • sessDer

        public byte[] sessDer
        DER-encoded session data.
    • Constructor Detail

      • HostInfo

        public HostInfo()
      • HostInfo

        public HostInfo​(String host,
                        int port,
                        boolean secure)
    • Method Detail

      • getNpn

        public String getNpn()
      • setNpn

        public void setNpn​(String npn)