Class StaticKeyProvider

    • Method Detail

      • keyFormat

        public final String keyFormat()
        Relates to DRM implementation. Sets the value of the KEYFORMAT attribute. Must be 'identity' or a reverse DNS string. May be omitted to indicate an implicit value of 'identity'.
        Returns:
        Relates to DRM implementation. Sets the value of the KEYFORMAT attribute. Must be 'identity' or a reverse DNS string. May be omitted to indicate an implicit value of 'identity'.
      • keyFormatVersions

        public final String keyFormatVersions()
        Relates to DRM implementation. Either a single positive integer version value or a slash delimited list of version values (1/2/3).
        Returns:
        Relates to DRM implementation. Either a single positive integer version value or a slash delimited list of version values (1/2/3).
      • staticKeyValue

        public final String staticKeyValue()
        Relates to DRM implementation. Use a 32-character hexidecimal string to specify Key Value.
        Returns:
        Relates to DRM implementation. Use a 32-character hexidecimal string to specify Key Value.
      • url

        public final String url()
        Relates to DRM implementation. The location of the license server used for protecting content.
        Returns:
        Relates to DRM implementation. The location of the license server used for protecting content.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)