public class SampleEncryptionTransformer extends Object implements DeploymentTransportInputFilter, DeploymentTransportOutputFilter
javax.crypto| Constructor and Description |
|---|
SampleEncryptionTransformer() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
addFilter(InputStream in,
String path,
String mimeType,
String encoding)
Decrypts inbound stream,
|
OutputStream |
addFilter(OutputStream out,
String path,
String mimeType,
String encoding)
Encrypted outgoing stream
|
String |
getCipherName() |
int |
getIterationCount() |
String |
getPassword() |
void |
setCipherName(String cipherName)
The name of the cipher to use such as "PBEWithMD5AndDES".
|
void |
setIterationCount(int iterationCount) |
void |
setPassword(String password)
Sets the password
|
public OutputStream addFilter(OutputStream out, String path, String mimeType, 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 InputStream addFilter(InputStream in, String path, String mimeType, String encoding)
addFilter in interface DeploymentTransportInputFilterout - the stream to decryptpath - the path of the file to decryptpublic void setCipherName(String cipherName)
cipherName - the name of the cipher to usepublic String getCipherName()
public void setPassword(String password)
password - the password used to generate a keypublic String getPassword()
public void setIterationCount(int iterationCount)
public int getIterationCount()
Copyright © 2005–2014 Alfresco Software. All rights reserved.