Cryptix OpenPGP

cryptix.message
Class KeyBundleMessageBuilderSpi

java.lang.Object
  extended bycryptix.message.KeyBundleMessageBuilderSpi

public abstract class KeyBundleMessageBuilderSpi
extends java.lang.Object

Service provider interface for KeyBundleMessageBuilder

Version:
$Revision: 1.2 $
Author:
Edwin Woudt

Constructor Summary
KeyBundleMessageBuilderSpi()
           
 
Method Summary
abstract  Message engineBuild()
          Returns a message containing a keybundle.
abstract  void engineInit(KeyBundle contents)
          Initializes this builder with the given keybundle.
abstract  void engineSetAttribute(java.lang.String name, java.lang.Object attr)
          Set a format specific attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyBundleMessageBuilderSpi

public KeyBundleMessageBuilderSpi()
Method Detail

engineInit

public abstract void engineInit(KeyBundle contents)
                         throws java.lang.IllegalStateException,
                                MessageException
Initializes this builder with the given keybundle.

Throws:
java.lang.IllegalStateException - if this message has been initialized before.
MessageException - on a variety of format specific problems.

engineSetAttribute

public abstract void engineSetAttribute(java.lang.String name,
                                        java.lang.Object attr)
                                 throws java.lang.IllegalStateException,
                                        java.lang.IllegalArgumentException,
                                        MessageException
Set a format specific attribute.

Parameters:
name - a name identifying the attribute
attr - the attribute itself
Throws:
java.lang.IllegalStateException - if this message has not been initialized before.
java.lang.IllegalArgumentException - if the attribute is not supported or the given object does not have the right type.
MessageException - on a variety of format specific problems.

engineBuild

public abstract Message engineBuild()
                             throws java.lang.IllegalStateException,
                                    MessageException
Returns a message containing a keybundle.

Throws:
java.lang.IllegalStateException - if this message has not been initialized before.
MessageException - on a variety of format specific problems.

Cryptix OpenPGP

Copyright (C) 1999-2003 The Cryptix Foundation Ltd.