Loading…

Kryptel/Java

IComponentState interface

Declaration

package com.kryptel;

public interface IComponentState {
    public enum ComponentState { ComponentIdle, ComponentBusy }

    ComponentState GetState() throws Exception;
    void Reset() throws Exception;
    IKryptelComponent Clone() throws Exception;
}

Description

This interface is exported by every component along with IKryptelComponent interface.

See also Components to learn more about component structure and usage.

Clone

IKryptelComponent Clone() throws Exception;

Creates another instance of the component initialized with the same parameters (including such parameters as key and initialization vector).

The function returns IKryptelComponent of the new copy or null if the component does not support cloning.

GetState

ComponentState GetState() throws Exception;

Returns the state of the component (ComponentIdle or ComponentBusy).

Reset

void Reset() throws Exception;

Resets the component to the ComponentIdle state. This function should be called after abnormal processing termination, for instance, it should be a part of error/exception handling.