Jive API (3.0.13) Core Javadocs

com.jivesoftware.community.media.authz
Class VideoTokenUtil

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

public class VideoTokenUtil
extends Object

Helper utility to support video playback token generation, manipulation, and analysis


Method Summary
static byte[] asByte(String hex)
           
static String asHex(byte[] buf)
           
protected static String getDecryptedToken(byte[] token)
          Method for decrypting the video token.
protected static String getNewVideoToken(User user, JiveObject jiveObject)
          Creates a new video token based on the requesting user id and object.
static VideoToken getTokenObject(String decryptedToken)
          Method to get a VideoToken representing the given token string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asHex

public static String asHex(byte[] buf)

asByte

public static byte[] asByte(String hex)

getNewVideoToken

protected static String getNewVideoToken(User user,
                                         JiveObject jiveObject)
Creates a new video token based on the requesting user id and object.

Parameters:
user - The user requesting the token.
jiveObject - The jiveObject that the request is for.
Returns:
A String representing the video encrypted video token.

getDecryptedToken

protected static String getDecryptedToken(byte[] token)
Method for decrypting the video token.

Parameters:
token - The encrypted video token.
Returns:
A String representing the decrypted token.

getTokenObject

public static VideoToken getTokenObject(String decryptedToken)
Method to get a VideoToken representing the given token string.

Parameters:
decryptedToken - The token in plain text
Returns:
A VideoToken representing the token string.

Jive Product Page

Copyright © 1999-2007 Jive Software.