|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.emf.ecore.resource.impl.CryptoCipherImpl
EMF default implementation for the URIConverter.Cipher interface.
This is an example of how this class can be used:
Map options = new HashMap();
options.put(Resource.OPTION_CIPHER,
new CryptoCipherImpl("a very long key indeed"));
resource.save(options);
resource.load(options);
| Nested Class Summary | |
|---|---|
static class |
CryptoCipherImpl.LocalCipherOutputStream
|
| Field Summary | |
|---|---|
protected static java.lang.String |
ENCRYPTION_SCHEME
|
protected java.lang.String |
key
|
protected static java.lang.String |
UNICODE_FORMAT
|
| Constructor Summary | |
|---|---|
CryptoCipherImpl()
|
|
CryptoCipherImpl(java.lang.String key)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
decrypt(java.io.InputStream inputStream)
Decrypts the specified input stream. |
java.io.OutputStream |
encrypt(java.io.OutputStream outputStream)
Encrypts the specified output stream. |
void |
finish(java.io.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(java.io.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. |
protected javax.crypto.SecretKey |
getKey()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String ENCRYPTION_SCHEME
protected static final java.lang.String UNICODE_FORMAT
protected java.lang.String key
| Constructor Detail |
public CryptoCipherImpl()
public CryptoCipherImpl(java.lang.String key)
| Method Detail |
public java.io.OutputStream encrypt(java.io.OutputStream outputStream)
throws java.lang.Exception
URIConverter.Cipher
encrypt in interface URIConverter.CipheroutputStream -
java.lang.Exception
public void finish(java.io.OutputStream outputStream)
throws java.lang.Exception
URIConverter.Cipher
finish in interface URIConverter.Cipherjava.lang.Exception
public java.io.InputStream decrypt(java.io.InputStream inputStream)
throws java.lang.Exception
URIConverter.Cipher
decrypt in interface URIConverter.CipherinputStream -
java.lang.Exception
public void finish(java.io.InputStream inputStream)
throws java.lang.Exception
URIConverter.Cipher
finish in interface URIConverter.Cipherjava.lang.Exception
protected javax.crypto.SecretKey getKey()
throws java.lang.Exception
java.lang.Exception
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||