blackboard.platform
Class LicenseUtil

java.lang.Object
  extended by blackboard.platform.LicenseUtil

public class LicenseUtil
extends java.lang.Object

LicenseUtil.

Since:
Bb 6.0
Version:
$Revision: #1 $ $Date: 2005/06/27 $

Constructor Summary
LicenseUtil()
           
 
Method Summary
static License createSignedLicense(License l)
           
static LicenseManager createSignedLicenseManager(LicenseManager lm)
           
static java.lang.String getAppPackNumber(java.lang.String buildNumber)
           
static java.lang.String getBuildNumber()
           
static java.lang.String getHashValue(java.lang.String input)
          Utility method that generates a hex-formatted string representation of the message digest obtained from the specified string.
static java.lang.String getHexString(byte[] bytes)
          Returns the hexadecimal representation of the specified byte array.
static java.lang.String getMajorReleaseNumber(java.lang.String buildNumber)
           
static java.lang.String getNameString(java.lang.String productNameKey, java.lang.String keyStub)
           
static java.lang.String getNameString(java.lang.String productNameKey, java.lang.String keyStub, java.lang.String[] args)
           
static java.lang.String getUpdateName(java.lang.String buildNumber)
           
static boolean isValidLicenseKey(License l)
           
static boolean isValidLicenseManagerKey(LicenseManager lm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LicenseUtil

public LicenseUtil()
Method Detail

createSignedLicenseManager

public static LicenseManager createSignedLicenseManager(LicenseManager lm)

createSignedLicense

public static License createSignedLicense(License l)

isValidLicenseKey

public static boolean isValidLicenseKey(License l)

isValidLicenseManagerKey

public static boolean isValidLicenseManagerKey(LicenseManager lm)

getHexString

public static java.lang.String getHexString(byte[] bytes)
Returns the hexadecimal representation of the specified byte array. Used in formatting message digests.

Parameters:
bytes - byte array to display
Returns:
Hex-formatted string

getHashValue

public static java.lang.String getHashValue(java.lang.String input)
Utility method that generates a hex-formatted string representation of the message digest obtained from the specified string. Used in generating persistent password references and challenges in the challenge response protocol.

Parameters:
input - String to hash, format and return
Returns:
Hexadecimal representation of the hashed message. All characters are lowercase.

getBuildNumber

public static java.lang.String getBuildNumber()
                                       throws PersistenceException
Throws:
PersistenceException

getMajorReleaseNumber

public static java.lang.String getMajorReleaseNumber(java.lang.String buildNumber)

getAppPackNumber

public static java.lang.String getAppPackNumber(java.lang.String buildNumber)

getUpdateName

public static java.lang.String getUpdateName(java.lang.String buildNumber)

getNameString

public static java.lang.String getNameString(java.lang.String productNameKey,
                                             java.lang.String keyStub)

getNameString

public static java.lang.String getNameString(java.lang.String productNameKey,
                                             java.lang.String keyStub,
                                             java.lang.String[] args)


Copyright © 2003 Blackboard, Inc. All Rights Reserved.