Class GatewayMacsec
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.networking.direct_link.v1.model.GatewayMacsec
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class GatewayMacsec extends com.ibm.cloud.sdk.core.service.model.GenericModelMACsec configuration information of a Direct Link gateway.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGatewayMacsec.CipherSuiteThe cipher suite used in generating the security association key (SAK).static interfaceGatewayMacsec.SecurityPolicyDetermines how packets without MACsec headers are handled.static interfaceGatewayMacsec.StatusCurrent status of MACsec on this direct link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCipherSuite()Gets the cipherSuite.LonggetConfidentialityOffset()Gets the confidentialityOffset.DategetCreatedAt()Gets the createdAt.LonggetKeyServerPriority()Gets the keyServerPriority.SakRekeygetSakRekey()Gets the sakRekey.StringgetSecurityPolicy()Gets the securityPolicy.StringgetStatus()Gets the status.List<GatewayMacsecStatusReason>getStatusReasons()Gets the statusReasons.DategetUpdatedAt()Gets the updatedAt.LonggetWindowSize()Gets the windowSize.BooleanisActive()Gets the active.
-
-
-
Method Detail
-
isActive
public Boolean isActive()
Gets the active. Indicates if the MACsec feature is currently active (true) or inactive (false) for a gateway.- Returns:
- the active
-
getCipherSuite
public String getCipherSuite()
Gets the cipherSuite. The cipher suite used in generating the security association key (SAK).- Returns:
- the cipherSuite
-
getConfidentialityOffset
public Long getConfidentialityOffset()
Gets the confidentialityOffset. The confidentiality offset determines the number of octets in an Ethernet frame that are not encrypted.- Returns:
- the confidentialityOffset
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time the resource was created.- Returns:
- the createdAt
-
getKeyServerPriority
public Long getKeyServerPriority()
Gets the keyServerPriority. Used in the MACsec Key Agreement (MKA) protocol to determine which peer acts as the key server. Lower values indicate a higher preference to be the key server. The MACsec configuration on the direct link will always set this value to 255.- Returns:
- the keyServerPriority
-
getSakRekey
public SakRekey getSakRekey()
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
-
getSecurityPolicy
public String getSecurityPolicy()
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
-
getStatus
public String getStatus()
Gets the status. Current status of MACsec on this direct link. Status `offline` is returned when MACsec is inactive and during direct link creation. Status `deleting` is returned when MACsec during removal of MACsec from the direct link and during direct link deletion. See `status_reasons[]` for possible remediation of the `failed` `status`.- Returns:
- the status
-
getStatusReasons
public List<GatewayMacsecStatusReason> getStatusReasons()
Gets the statusReasons. Context for certain values of `status`.- Returns:
- the statusReasons
-
getUpdatedAt
public Date getUpdatedAt()
Gets the updatedAt. The date and time the resource was last updated.- Returns:
- the updatedAt
-
getWindowSize
public Long getWindowSize()
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
-
-