org.eclipse.emf.ecore.resource
Interface URIConverter.Cipher

All Known Implementing Classes:
CryptoCipherImpl
Enclosing interface:
URIConverter

public static interface URIConverter.Cipher

An interface to be implemented by encryption service providers.

Since:
2.2.0

Method Summary
 InputStream decrypt(InputStream inputStream)
          Decrypts the specified input stream.
 OutputStream encrypt(OutputStream outputStream)
          Encrypts the specified output stream.
 void finish(InputStream inputStream)
          This method is invoked after the decrypted input stream is used allowing the Cipher implementation to do any maintenance work required, such as flushing internal cache.
 void finish(OutputStream outputStream)
          This method is invoked after the encrypted output stream is used allowing the Cipher implementation to do any maintenance work required, such as flushing an internal cache.
 

Method Detail

encrypt

public OutputStream encrypt(OutputStream outputStream)
                     throws Exception
Encrypts the specified output stream.

Parameters:
outputStream -
Returns:
an encrypted output stream
Throws:
Exception

finish

public void finish(OutputStream outputStream)
            throws Exception
This method is invoked after the encrypted output stream is used allowing the Cipher implementation to do any maintenance work required, such as flushing an internal cache.

Throws:
Exception

decrypt

public InputStream decrypt(InputStream inputStream)
                    throws Exception
Decrypts the specified input stream.

Parameters:
inputStream -
Returns:
a decrypted input stream
Throws:
Exception

finish

public void finish(InputStream inputStream)
            throws Exception
This method is invoked after the decrypted input stream is used allowing the Cipher implementation to do any maintenance work required, such as flushing internal cache.

Throws:
Exception

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.