Class NewSessionTicket


  • public class NewSessionTicket
    extends java.lang.Object
    • Field Detail

      • ticketLifetimeHint

        protected long ticketLifetimeHint
      • ticket

        protected byte[] ticket
    • Constructor Detail

      • NewSessionTicket

        public NewSessionTicket​(long ticketLifetimeHint,
                                byte[] ticket)
    • Method Detail

      • getTicketLifetimeHint

        public long getTicketLifetimeHint()
      • getTicket

        public byte[] getTicket()
      • encode

        public void encode​(java.io.OutputStream output)
                    throws java.io.IOException
        Encode this NewSessionTicket to an OutputStream.
        Parameters:
        output - the OutputStream to encode to.
        Throws:
        java.io.IOException
      • parse

        public static NewSessionTicket parse​(java.io.InputStream input)
                                      throws java.io.IOException
        Parse a NewSessionTicket from an InputStream.
        Parameters:
        input - the InputStream to parse from.
        Returns:
        a NewSessionTicket object.
        Throws:
        java.io.IOException