Package com.kaltura.client.services
Class SessionService
- java.lang.Object
-
- com.kaltura.client.services.SessionService
-
public class SessionService extends Object
Session service
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionService.EndSessionBuilderstatic classSessionService.GetSessionBuilderstatic classSessionService.ImpersonateByKsSessionBuilderstatic classSessionService.ImpersonateSessionBuilderstatic classSessionService.StartSessionBuilderstatic classSessionService.StartWidgetSessionSessionBuilder
-
Constructor Summary
Constructors Constructor Description SessionService()
-
Method Summary
-
-
-
Method Detail
-
end
public static SessionService.EndSessionBuilder end()
End a session with the Kaltura server, making the current KS invalid.
-
get
public static SessionService.GetSessionBuilder get()
-
get
public static SessionService.GetSessionBuilder get(String session)
Parse session key and return its info- Parameters:
session- The KS to be parsed, keep it empty to use current session.
-
impersonate
public static SessionService.ImpersonateSessionBuilder impersonate(String secret, int impersonatedPartnerId)
-
impersonate
public static SessionService.ImpersonateSessionBuilder impersonate(String secret, int impersonatedPartnerId, String userId)
-
impersonate
public static SessionService.ImpersonateSessionBuilder impersonate(String secret, int impersonatedPartnerId, String userId, SessionType type)
-
impersonate
public static SessionService.ImpersonateSessionBuilder impersonate(String secret, int impersonatedPartnerId, String userId, SessionType type, int partnerId)
-
impersonate
public static SessionService.ImpersonateSessionBuilder impersonate(String secret, int impersonatedPartnerId, String userId, SessionType type, int partnerId, int expiry)
-
impersonate
public static SessionService.ImpersonateSessionBuilder impersonate(String secret, int impersonatedPartnerId, String userId, SessionType type, int partnerId, int expiry, String privileges)
Start an impersonated session with Kaltura's server. The result KS is the session key that you should pass to all services that requires a ticket.- Parameters:
secret- - should be the secret (admin or user) of the original partnerId (not impersonatedPartnerId).impersonatedPartnerId-userId- - impersonated userIdtype-partnerId-expiry- KS expiry time in secondsprivileges-
-
impersonateByKs
public static SessionService.ImpersonateByKsSessionBuilder impersonateByKs(String session)
-
impersonateByKs
public static SessionService.ImpersonateByKsSessionBuilder impersonateByKs(String session, SessionType type)
-
impersonateByKs
public static SessionService.ImpersonateByKsSessionBuilder impersonateByKs(String session, SessionType type, int expiry)
-
impersonateByKs
public static SessionService.ImpersonateByKsSessionBuilder impersonateByKs(String session, SessionType type, int expiry, String privileges)
Start an impersonated session with Kaltura's server. The result KS info contains the session key that you should pass to all services that requires a ticket. Type, expiry and privileges won't be changed if they're not set- Parameters:
session- The old KS of the impersonated partnertype- Type of the new KSexpiry- Expiry time in seconds of the new KSprivileges- Privileges of the new KS
-
start
public static SessionService.StartSessionBuilder start(String secret)
-
start
public static SessionService.StartSessionBuilder start(String secret, String userId)
-
start
public static SessionService.StartSessionBuilder start(String secret, String userId, SessionType type)
-
start
public static SessionService.StartSessionBuilder start(String secret, String userId, SessionType type, int partnerId)
-
start
public static SessionService.StartSessionBuilder start(String secret, String userId, SessionType type, int partnerId, int expiry)
-
start
public static SessionService.StartSessionBuilder start(String secret, String userId, SessionType type, int partnerId, int expiry, String privileges)
Start a session with Kaltura's server. The result KS is the session key that you should pass to all services that requires a ticket.- Parameters:
secret- Remember to provide the correct secret according to the sessionType you wantuserId-type- Regular session or Admin sessionpartnerId-expiry- KS expiry time in secondsprivileges-
-
startWidgetSession
public static SessionService.StartWidgetSessionSessionBuilder startWidgetSession(String widgetId)
-
startWidgetSession
public static SessionService.StartWidgetSessionSessionBuilder startWidgetSession(String widgetId, int expiry)
Start a session for Kaltura's flash widgets- Parameters:
widgetId-expiry-
-
-