|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.CAManagerFactory
public final class CAManagerFactory
This class represent a factory for Conditional Access managers. It is the entry point of the CA API defined in this package.
Nested Class Summary | |
---|---|
class |
CAManagerFactory.SessionCloser
This class allows a session to be opened in an asynchronous way. |
class |
CAManagerFactory.SessionOpener
This class allows a session to be opened in an asynchronous way. |
Field Summary | |
---|---|
static java.lang.String |
CONAX
Conax provider name. |
static java.lang.String |
IRDETO
Irdeto provider name. |
static java.lang.String |
NAGRA
Nagra provider name. |
static java.lang.String |
SATSA
SATSA provider name. |
Constructor Summary | |
---|---|
CAManagerFactory()
|
Method Summary | |
---|---|
void |
closeSession(org.davic.resources.ResourceClient resourceClient)
Close the current session releasing any allocated resources. |
static CAManagerFactory |
getInstance(java.lang.String provider,
java.lang.String broadcaster)
This method returns the instance of the CAManagerFactory for the specified provider name. |
static CAManagerFactory |
getInstance(java.lang.String provider,
java.lang.String broadcaster,
javax.tv.service.selection.ServiceContext serviceContext)
This method returns the instance of the CAManagerFactory for the current service in the specified Service Context. |
CAManager |
openSession(org.davic.resources.ResourceClient resourceClient)
This method is used to open a session with the Conditional Access API. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONAX
public static final java.lang.String IRDETO
public static final java.lang.String NAGRA
public static final java.lang.String SATSA
Constructor Detail |
---|
public CAManagerFactory()
Method Detail |
---|
public static CAManagerFactory getInstance(java.lang.String provider, java.lang.String broadcaster) throws NoSuchProviderException, AccessDeniedException
provider
- the name of the provider of Conditional Access
functionalities, e.g. "Nagra", "Irdeto", "Conax", etc.broadcaster
- the name of the broadcaster providing the service, as reported
in the DVB Service Description Table
AccessDeniedException
- if access to the specific service context is denied due to context
specific reasons.
NoSuchProviderException
- if the indicated provider does not exist or is not available.public static CAManagerFactory getInstance(java.lang.String provider, java.lang.String broadcaster, javax.tv.service.selection.ServiceContext serviceContext) throws NoSuchServiceContextException, AccessDeniedException
provider
- the name of the provider of Conditional Access
functionalities, e.g. "Nagra", "Irdeto", "Conax", etc.broadcaster
- the name of the broadcaster providing the service, as reported
in the DVB Service Description TableserviceContext
- the Service Context of the current channel to which the Conditional Access
System is associated.
AccessDeniedException
- if access to the specific service context is denied due to context
specific reasons.
NoSuchServiceContextException
- if the indicated Service Context does not exist or is not available.public CAManager openSession(org.davic.resources.ResourceClient resourceClient)
resourceClient
- the object asking for access to the CA API.
public void closeSession(org.davic.resources.ResourceClient resourceClient) throws OwnerUnknownException, NoSessionOpenedException
resourceClient
- the object asking for access to the CA API
OwnerUnknownException
- thrown when the resourceClient is unknown. This is a runtime exception.
NoSessionOpenedException
- thrown when the session is closed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |