Class FixedPortStrategy

  • All Implemented Interfaces:
    SecurePortStrategy

    @Deprecated
    public final class FixedPortStrategy
    extends java.lang.Object
    implements SecurePortStrategy
    Deprecated.
    Use configuration parameters provided by connection listeners.
    Basic implementation of SecurePortStrategy with a fixed list of secure ports.
    Since:
    5.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int[] securePorts
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      FixedPortStrategy​(int... securePorts)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean isSecure​(java.net.SocketAddress localAddress)
      Deprecated.
      Determines if the given address should be secured or considered secure.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • securePorts

        private final int[] securePorts
        Deprecated.
    • Constructor Detail

      • FixedPortStrategy

        public FixedPortStrategy​(int... securePorts)
        Deprecated.
    • Method Detail

      • isSecure

        public boolean isSecure​(java.net.SocketAddress localAddress)
        Deprecated.
        Description copied from interface: SecurePortStrategy
        Determines if the given address should be secured or considered secure.
        Specified by:
        isSecure in interface SecurePortStrategy
        Parameters:
        localAddress - the given address.
        Returns:
        secure flag.