Jive API (3.0.13) Core Javadocs

com.jivesoftware.community.media.authz
Class VideoTokenManagerImpl

java.lang.Object
  extended by com.jivesoftware.community.media.authz.VideoTokenManagerImpl

public class VideoTokenManagerImpl
extends Object

Enables generation and validation of video playback tokens. When a video is viewed a player will perform a callback that invokes the validation methods to ensure that the user attempting to play the video has permission to view the video


Constructor Summary
VideoTokenManagerImpl()
           
 
Method Summary
 boolean isTokenValid(String token)
          Validates the given encrypted video playback token
 String requestNewToken(User user, JiveObject jiveObject)
          Requests a new video token for the given user viewing the given object
 void setVideoSettingsManager(VideoSettingsManager videoSettingsManager)
           
 void setVideoTokenCache( videoTokenCache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoTokenManagerImpl

public VideoTokenManagerImpl()
Method Detail

requestNewToken

public String requestNewToken(User user,
                              JiveObject jiveObject)
Requests a new video token for the given user viewing the given object

Parameters:
user - viewing item
jiveObject - being viewed
Returns:
an encrypted video token

isTokenValid

public boolean isTokenValid(String token)
Validates the given encrypted video playback token

Returns:
true if the given token is valid

setVideoTokenCache

public void setVideoTokenCache( videoTokenCache)

setVideoSettingsManager

public void setVideoSettingsManager(VideoSettingsManager videoSettingsManager)

Jive Product Page

Copyright © 1999-2007 Jive Software.