Class SSLInfo

java.lang.Object
com.zeroc.Glacier2.SSLInfo
All Implemented Interfaces:
Serializable, Cloneable

public final class SSLInfo extends Object implements Cloneable, Serializable
Represents information gathered from an incoming SSL connection and used for authentication and authorization.
See Also:
  • Field Details

    • remoteHost

      public String remoteHost
      The remote host.
    • remotePort

      public int remotePort
      The remote port.
    • localHost

      public String localHost
      The router's host.
    • localPort

      public int localPort
      The router's port.
    • cipher

      public String cipher
      The negotiated cipher suite.
    • certs

      public String[] certs
      The certificate chain.
  • Constructor Details

    • SSLInfo

      public SSLInfo()
      Constructs a SSLInfo.
    • SSLInfo

      public SSLInfo(String remoteHost, int remotePort, String localHost, int localPort, String cipher, String[] certs)
      Constructs a SSLInfo with values for all its fields.
      Parameters:
      remoteHost - The remote host.
      remotePort - The remote port.
      localHost - The router's host.
      localPort - The router's port.
      cipher - The negotiated cipher suite.
      certs - The certificate chain.
  • Method Details

    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public SSLInfo clone()
      Overrides:
      clone in class Object
    • ice_writeMembers

      public void ice_writeMembers(OutputStream ostr)
      Marshals this object's fields into an output stream.
      Parameters:
      ostr - the output stream
    • ice_readMembers

      public void ice_readMembers(InputStream istr)
      Unmarshals and sets this object's fields from an input stream.
      Parameters:
      istr - the input stream
    • ice_write

      public static void ice_write(OutputStream ostr, SSLInfo v)
      Marshals a SSLInfo into an output stream.
      Parameters:
      ostr - the output stream
      v - the SSLInfo to marshal; can be null
    • ice_read

      public static SSLInfo ice_read(InputStream istr)
      Unmarshals a SSLInfo from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the unmarshaled SSLInfo
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<SSLInfo> v)
      Marshals an optional SSLInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, SSLInfo v)
      Marshals an optional SSLInfo into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

      public static Optional<SSLInfo> ice_read(InputStream istr, int tag)
      Unmarshals an optional SSLInfo from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the unmarshaled value