LCM Software
TFTP Package v1.5

com.lcmsoft.tftp
Class TftpRegistrationManager

java.lang.Object
  extended by com.lcmsoft.tftp.TftpRegistrationManager

public class TftpRegistrationManager
extends java.lang.Object

Manages registration keys for the package. The class TftpRegistrationManager is a central place that manages registration keys for the entire package, so that you don't need to set registration keys for each class. Once a registration key is set with TftpRegistrationManager it is valid for all classes of the package.


Method Summary
static java.lang.String getRegistrationKey()
          Returns the registration key.
static void setRegistrationKey(java.lang.String key)
          Sets the registration key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setRegistrationKey

public static void setRegistrationKey(java.lang.String key)
Sets the registration key. If the key is not not valid, throws an IllegalArgumentException, otherwise unlocks the package or extends the number of transfers allowed per run, depending on the registration key.

The registration key can be set anytime, but it is preferable to set it at application initialization. Notice that the registration key can be set only once. Caling setRegistrationKey again will throw an exception.

Parameters:
key - registration key

getRegistrationKey

public static java.lang.String getRegistrationKey()
Returns the registration key.

Returns:
the registration key or null if not set

Copyright © 2004 LCM Software
All rights reserved