public class SampleEncryptionTransformer extends java.lang.Object implements DeploymentTransportInputFilter, DeploymentTransportOutputFilter
javax.crypto| Constructor and Description |
|---|
SampleEncryptionTransformer() |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
addFilter(java.io.InputStream in,
java.lang.String path,
java.lang.String mimeType,
java.lang.String encoding)
Decrypts inbound stream,
|
java.io.OutputStream |
addFilter(java.io.OutputStream out,
java.lang.String path,
java.lang.String mimeType,
java.lang.String encoding)
Encrypted outgoing stream
|
java.lang.String |
getCipherName() |
int |
getIterationCount() |
java.lang.String |
getPassword() |
void |
setCipherName(java.lang.String cipherName)
The name of the cipher to use such as "PBEWithMD5AndDES".
|
void |
setIterationCount(int iterationCount) |
void |
setPassword(java.lang.String password)
Sets the password
|
public java.io.OutputStream addFilter(java.io.OutputStream out,
java.lang.String path,
java.lang.String mimeType,
java.lang.String encoding)
addFilter in interface DeploymentTransportOutputFilterout - the stream to encryptpath - the path of the file to encryptmimeType - the encoding of the fileencoding - the mimeType of the filepublic java.io.InputStream addFilter(java.io.InputStream in,
java.lang.String path,
java.lang.String mimeType,
java.lang.String encoding)
addFilter in interface DeploymentTransportInputFilterout - the stream to decryptpath - the path of the file to decryptpublic void setCipherName(java.lang.String cipherName)
cipherName - the name of the cipher to usepublic java.lang.String getCipherName()
public void setPassword(java.lang.String password)
password - the password used to generate a keypublic java.lang.String getPassword()
public void setIterationCount(int iterationCount)
public int getIterationCount()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.