All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ocap.media.MediaAccessAuthorization.html Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version






MediaAccessAuthorization














org.ocap.media
Interface MediaAccessAuthorization


public interface MediaAccessAuthorization

A MediaAccessAuthorization object represents the presentation authorization given by a registered MediaAccessHandler for a specific A/V content. When the MediaAccessHandler is triggered by the OCAP implementation, it returns a MediaAccessAuthorization to indicate which service components should not be presented, if any, with a list of reasons for denied access (use constant defined in AlternativeMediaPresentationReason) per service component.

See Also:
MediaAccessHandler, AlternativeMediaPresentationReason

Method Summary
 int getDenialReasons(ElementaryStream es)
          Return a bit mask of denial reasons for the given service component.
 java.util.Enumeration getDeniedElementaryStreams()
          Returns the list of service components whose presentation has not been authorized by the MediaAccessHandler.
 boolean isFullAuthorization()
          Returns true if the presentation of all service components is authorized.
 

Method Detail

isFullAuthorization

boolean isFullAuthorization()
Returns true if the presentation of all service components is authorized. False otherwise.

Returns:
true if the presentation of all service components is authorized. False otherwise.

getDeniedElementaryStreams

java.util.Enumeration getDeniedElementaryStreams()
Returns the list of service components whose presentation has not been authorized by the MediaAccessHandler.

Returns:
an Enumeration of ElementaryStream whose presentation has not been authorized by the MediaAccessHandler.

getDenialReasons

int getDenialReasons(ElementaryStream es)
Return a bit mask of denial reasons for the given service component. Denial reasons are defined in AlternativeMediaPresentationReason

Parameters:
es - the service component the MediaAccessHandler refused presentation.
Returns:
a bit mask of reasons for the denial. This bit mask is made of AlternativeMediaPresentationReason.






© 2015 - 2024 Weber Informatics LLC | Privacy Policy