Class HlsClearKeyCache

    • Constructor Detail

      • HlsClearKeyCache

        public HlsClearKeyCache()
    • Method Detail

      • get

        @Nullable
        public abstract byte[] get​(@Nullable
                                   Uri uri)
        Returns the encryptionKey cached against this uri, or null if uri is null or not present in the cache.
      • put

        @Nullable
        public abstract byte[] put​(@NonNull
                                   Uri uri,
                                   @NonNull
                                   byte[] encryptionKey)
        Inserts an entry into the cache.
        Throws:
        NullPointerException - if uri or encryptionKey are null.
      • containsUri

        public abstract boolean containsUri​(@NonNull
                                            Uri uri)
        Returns true if uri is present in the cache.
        Throws:
        NullPointerException - if uri is null.
      • remove

        @Nullable
        public abstract byte[] remove​(@NonNull
                                      Uri uri)
        Removes uri from the cache. If uri was present in the cahce, this returns the corresponding encryptionKey, otherwise null.
        Throws:
        NullPointerException - if uri is null.