Enum TLSStatus

  • All Implemented Interfaces:
    Serializable, Comparable<TLSStatus>

    public enum TLSStatus
    extends Enum<TLSStatus>
    A TLSStatus enum describing the current handshaking state of this TLS connection.
    Author:
    Artur Hefczyc, Hao Chen
    • Enum Constant Detail

      • NEED_WRITE

        public static final TLSStatus NEED_WRITE
        ust send data to the remote side before handshaking can continue.
      • NEED_READ

        public static final TLSStatus NEED_READ
        Need to receive data from the remote side before handshaking can continue.
      • UNDERFLOW

        public static final TLSStatus UNDERFLOW
        Not be able to unwrap the incoming data because there were not enough source bytes available to make a complete packet.
      • CLOSED

        public static final TLSStatus CLOSED
        The operation just closed this side of the SSLEngine, or the operation could not be completed because it was already closed.
      • OK

        public static final TLSStatus OK
        Handshaking is OK.
    • Method Detail

      • values

        public static TLSStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TLSStatus c : TLSStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TLSStatus valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null