# com.beasys.commerce.ebusiness.security
KeyBootstrap Class

public class KeyBootstrap
extends `Object`
implements `Schedulable`, `T3StartupDef`, `Triggerable`

Used as a startup class to bootstrap public and private keys. Checks a property in the commerce.properties file to determine if the application wants to be encryption enabled. The property is is.encryption.enabled=true/false

Hierarchy
  `Object`
  `KeyBootstrap`

All Implemented Interfaces
  `Schedulable`, `T3StartupDef`, `Triggerable`

## Constructor Summary

KeyBootstrap() Constructor comment.

## Method Summary

`public boolean` | `bindKeys`() This does most of the work in the class.
`public long` | `schedule`(long t) Callback from WLS to renew the scheduled callback.
`public void` | `setServices`(`T3ServicesDef` services) setServices method comment.
`public `String`` | `startup`(`String` name, `Hashtable` props) Implements T3StartupDef gets called by the container as part of startup
`public void` | `trigger`(`Schedulable` sched) Timed callback from WLS used to maintain a reference to the KeyFactory to prevent its garbage collection.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `weblogic.time.common.`Schedulable``
`schedule`

Methods from interface `weblogic.common.`T3StartupDef``
`setServices, startup`

Methods from interface `weblogic.time.common.`Triggerable``
`trigger`

## Constructor Detail

### KeyBootstrap

    public KeyBootstrap()

  Constructor comment.

## Method Detail

### bindKeys() Method

    public boolean bindKeys()
         throws Exception

This does most of the work in the class.

#### Exceptions

``Exception``

### schedule(long) Method

    public long schedule(long t)

Callback from WLS to renew the scheduled callback.

#### Parameters

t
  the current time.

#### Returns

The time of the next callback.

### setServices(T3ServicesDef) Method

    public void setServices(T3ServicesDef services)

setServices method comment.

### startup(String, Hashtable) Method

    public String startup(String name,
                          Hashtable props)
         throws Exception

Implements T3StartupDef gets called by the container as part of startup

#### Returns

String Message that gets put in the weblogic log.

#### Exceptions

``Exception``

### trigger(Schedulable) Method

    public void trigger(Schedulable sched)

Timed callback from WLS used to maintain a reference to the KeyFactory to prevent its garbage collection.

#### Parameters

sched
  (not used)

#### Returns

The time of the next callback.