blackboard.platform
Class LicenseUtil

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

public class LicenseUtil
extends java.lang.Object

LicenseUtil.

Since:
Bb 6.0

Nested Class Summary
static class LicenseUtil.DateMode
           
 
Constructor Summary
LicenseUtil()
           
 
Method Summary
static LicenseManager createSignedLicenseManager(LicenseManager lm)
           
static java.lang.String getAppPackNumber(java.lang.String buildNumber)
           
static java.lang.String getBbcmsBuildNumber()
           
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)

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
Returns:
The current build number from the database.
Throws:
PersistenceException - If there is some database error while trying to load the build number.

getBbcmsBuildNumber

public static java.lang.String getBbcmsBuildNumber()
                                            throws PersistenceException
Returns:
The current Bb CMS build number from the database.
Throws:
PersistenceException - If there is some database error while trying to load the Bb CMS build number.

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 © 2012 Blackboard, Inc. All Rights Reserved.