Class GatewayMacsecPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.networking.direct_link.v1.model.GatewayMacsecPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class GatewayMacsecPatch extends com.ibm.cloud.sdk.core.service.model.GenericModelPatch fields for MACsec configuration of a Direct Link gateway.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGatewayMacsecPatch.BuilderBuilder.static interfaceGatewayMacsecPatch.SecurityPolicyDetermines how packets without MACsec headers are handled.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanactive()Gets the active.Map<String,Object>asPatch()Construct a JSON merge-patch from the GatewayMacsecPatch.GatewayMacsecPatch.BuildernewBuilder()New builder.SakRekeyPatchsakRekey()Gets the sakRekey.StringsecurityPolicy()Gets the securityPolicy.LongwindowSize()Gets the windowSize.
-
-
-
Method Detail
-
newBuilder
public GatewayMacsecPatch.Builder newBuilder()
New builder.- Returns:
- a GatewayMacsecPatch builder
-
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
-
-