Class GatewayMacsecCak
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.networking.direct_link.v1.model.GatewayMacsecCak
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class GatewayMacsecCak extends com.ibm.cloud.sdk.core.service.model.GenericModelA connectivity association key (CAK) used in the MACsec Key Agreement (MKA) protocol. MACsec CAKs consist of both a name and key. The CAK's `name` must be a hexadecimal string of even lengths between 2 to 64 inclusive. The CAK's `key` must be a [Hyper Protect Crypto Service Standard Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started) type=standard with key material a hexadecimal string exactly 64 characters in length.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGatewayMacsecCak.SessionThe intended session the key will be used to secure.static interfaceGatewayMacsecCak.StatusCurrent status of the CAK.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GatewayMacsecCakActiveDeltagetActiveDelta()Gets the activeDelta.DategetCreatedAt()Gets the createdAt.StringgetId()Gets the id.HpcsKeyReferencegetKey()Gets the key.StringgetName()Gets the name.StringgetSession()Gets the session.StringgetStatus()Gets the status.DategetUpdatedAt()Gets the updatedAt.
-
-
-
Method Detail
-
getActiveDelta
public GatewayMacsecCakActiveDelta getActiveDelta()
Gets the activeDelta. This field will be present when the `status` of the MACsec CAK is `rotating` or `inactive`. It may be present when the CAK `status` is `failed`. This object denotes the MACsec CAK's values prior to beginning a CAK rotation and represents the previous key still configured in the direct link's MACsec key chain. This object will be removed when the MACsec CAK rotation completes, indicating that the previous key has been removed from the key chain, and the current CAK's values are in use.- Returns:
- the activeDelta
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time the resource was created.- Returns:
- the createdAt
-
getId
public String getId()
Gets the id. The unique identifier for this connectivity association key (CAK).- Returns:
- the id
-
getKey
public HpcsKeyReference getKey()
Gets the key. A reference to a [Hyper Protect Crypto Service Standard Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started).- Returns:
- the key
-
getName
public String getName()
Gets the name. The name identifies the connectivity association key (CAK) within the MACsec key chain. The CAK's `name` must be a hexadecimal string of even lengths between 2 to 64 inclusive. This value, along with the material of the `key`, must match on the MACsec peers.- Returns:
- the name
-
getSession
public String getSession()
Gets the session. The intended session the key will be used to secure. If the `primary` MACsec session fails due to a key/key name mismatch on the peers, the `fallback` session can take over. There must be a `primary` session CAK. A `fallback` CAK is optional.- Returns:
- the session
-
getStatus
public String getStatus()
Gets the status. Current status of the CAK. Status `operational` is returned when the CAK is configured successfully. Status `rotating` is returned during a key rotation. The CAK defined by `active_delta` is still configured on the device and could be securing the MACsec session. In the case of a primary CAK, the status will be `rotating` for a period of time while waiting for the MACsec session to be secured with the new CAK. After that time, the CAK will either enter `active` or `inactive` status. Status `active` is returned when the CAK is configured successfully and is currently used to secure the MACsec session. Status `inactive` is returned when the CAK is configured successfully, but is not currently used to secure the MACsec session. The CAK may enter `rotating` status, and ultimately the `active` status, if it is found to be used to secure the MACsec session. The CAK may never leave this status on its own (e.g. if there is a key/key name mismatch). You are allowed to patch the CAK in this state to start the rotation procedure again. Status `failed` is returned when the CAK cannot be configured. To recover, first resolve any issues with your HPCS key, then patch this CAK with the same or new key. Alternatively, you can delete this CAK if used for the `fallback` session.- Returns:
- the status
-
getUpdatedAt
public Date getUpdatedAt()
Gets the updatedAt. The date and time the resource was last updated.- Returns:
- the updatedAt
-
-