Logo Search packages:      
Sourcecode: libgnucrypto-java version File versions  Download package

void gnu::crypto::assembly::Stage::init ( Map  attributes  )  throws InvalidKeyException [inline]

Initialises the stage for operation with specific characteristics.

Parameters:
attributes a set of name-value pairs that describes the desired future behaviour of this instance.
Exceptions:
IllegalStateException if the instance is already initialised.
InvalidKeyException if the key data is invalid.

Definition at line 145 of file Stage.java.

References gnu::crypto::assembly::Direction::FORWARD.

Referenced by gnu::crypto::assembly::Cascade::init().

                                                               {
      if (wired != null) {
         throw new IllegalStateException();
      }
      Direction flow = (Direction) attributes.get(DIRECTION);
      if (flow == null) {
         flow = Direction.FORWARD;
         attributes.put(DIRECTION, flow);
      }
      initDelegate(attributes);
      wired = flow;
   }


Generated by  Doxygen 1.6.0   Back to index