# DrmInfo Class

    public class DrmInfo : Equatable

DRM metadata attached to renditions.

### Lifecycle

- `init(uuid:initData:contentId:kid:expirationDate:timeLeft:persistent:securityLevel:drmState:)`

  Creates a DRM info descriptor.

  #### Declaration

  Swift

      public init(
          uuid: String,
          initData: [UInt8],
          contentId: String,
          kid: [UInt8],
          expirationDate: UInt64,
          timeLeft: UInt64,
          persistent: Bool,
          securityLevel: String,
          drmState: DrmInfoState)

  #### Parameters

  `uuid` | DRM-system UUID.
  `initData` | DRM initialization data.
  `contentId` | Content identifier.
  `kid` | Key identifier bytes.
  `expirationDate` | License expiration timestamp/value.
  `timeLeft` | Remaining license validity value.
  `persistent` | Whether license is persistent.
  `securityLevel` | Security-level descriptor.
  `drmState` | Current DRM info state.

### Public

- `uuid`

  DrmInfo identifier.

  #### Declaration

  Swift

      public let uuid: String

- `initData`

  DRM initialization data bytes.

  #### Declaration

  Swift

      public let initData: [UInt8]

- `contentId`

  Content identifier associated with this DRM info.

  #### Declaration

  Swift

      public let contentId: String

- `kid`

  Key identifier bytes.

  #### Declaration

  Swift

      public let kid: [UInt8]

- `expirationDate`

  License expiration date as epoch milliseconds/seconds per source semantics.

  #### Declaration

  Swift

      public let expirationDate: UInt64

- `timeLeft`

  Remaining license time per source semantics.

  #### Declaration

  Swift

      public let timeLeft: UInt64

- `persistent`

  Whether the license is persistent/offline-capable.

  #### Declaration

  Swift

      public let persistent: Bool

- `securityLevel`

  DRM security level descriptor.

  #### Declaration

  Swift

      public let securityLevel: String

- `drmState`

  Current DRM-state indicator.

  #### Declaration

  Swift

      public let drmState: DrmInfoState

- `==(_:_:)`

  Compares DRM info entries by UUID.

  #### Declaration

  Swift

      public static func == (lhs: DrmInfo, rhs: DrmInfo) -> Bool