Class GatewayMacsecPatch

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class GatewayMacsecPatch
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Patch fields for MACsec configuration of a Direct Link gateway.
    • Method Detail

      • active

        public Boolean active()
        Gets the active. Sets the MACsec feature to be active (true) or inactive (false) for a gateway.
        Returns:
        the active
      • sakRekey

        public SakRekeyPatch sakRekey()
        Gets the sakRekey. Determines how SAK rekeying occurs. It is either timer based or based on the amount of used packet numbers.
        Returns:
        the sakRekey
      • securityPolicy

        public String securityPolicy()
        Gets the securityPolicy. Determines how packets without MACsec headers are handled. `must_secure` - Packets without MACsec headers are dropped. This policy should be used to prefer security over network availability. `should_secure` - Packets without MACsec headers are allowed. This policy should be used to prefer network availability over security.
        Returns:
        the securityPolicy
      • windowSize

        public Long windowSize()
        Gets the windowSize. The window size determines the number of frames in a window for replay protection. Replay protection is used to counter replay attacks. Frames within a window size can be out of order and are not replay protected.
        Returns:
        the windowSize
      • asPatch

        public Map<String,​Object> asPatch()
        Construct a JSON merge-patch from the GatewayMacsecPatch. Note that properties of the GatewayMacsecPatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.
        Returns:
        a JSON merge-patch for the GatewayMacsecPatch