|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.priv.pro.ProtectionLauncherConfigWriter
public class ProtectionLauncherConfigWriter
This class is intended to encode and write ProtectionLauncherConfig to the file or output stream
| Field Summary | |
|---|---|
protected byte[] |
fEncryptKeyBytes
|
protected java.lang.String |
fSecurityAlgorithm
|
protected SecurityProvider |
fSecurityProvider
|
protected boolean |
fSkipEncryption
|
protected boolean |
fVerbose
|
| Constructor Summary | |
|---|---|
ProtectionLauncherConfigWriter()
Creates a new instance of the ProtectionLauncherConfigWriter |
|
ProtectionLauncherConfigWriter(Product aProduct)
Creates a new instance of the ProtectionLauncherConfigWriter |
|
ProtectionLauncherConfigWriter(java.lang.String aSecurityAlgorithm,
byte[] aEncryptKeyBytes)
|
|
| Method Summary | |
|---|---|
protected void |
error(java.lang.Throwable aThrowable)
|
byte[] |
getEncryptKeyBytes()
Returns bytes array that specifies key used to encrypt the ProtectionLauncherConfig. |
java.lang.String |
getSecurityAlgorithm()
Returns security algorithm to be used to encode ProtectionLauncherConfig's |
protected SecurityProvider |
getSecurityProvider()
|
boolean |
isSkipEncryption()
Checks whether ProtectionLauncherConfig encryption should be skipped. |
boolean |
isVerbose()
Checks whether writer runs in verbose mode. |
void |
setEncryptKeyBytes(byte[] aEncryptKeyBytes)
Specifies bytes array that represents key used to encrypt the ProtectionLauncherConfig. |
void |
setSecurityAlgorithm(java.lang.String aSecurityAlgorithm)
Specifies security algorithm to be used to encode ProtectionLauncherConfig's |
void |
setSkipEncryption(boolean aSkipEncryption)
Specifies that ProtectionLauncherConfig encryption should be skipped. |
void |
setVerbose(boolean aVerbose)
Specifies that writer should run in verbose mode. |
void |
write(ProtectionLauncherConfig aConfig,
java.io.File aFile)
Encodes and writes ProtectionLauncherConfig to the specified file |
void |
write(ProtectionLauncherConfig aConfig,
java.io.File aJarFile,
java.lang.String anEntryName)
Encodes and writes ProtectionLauncherConfig as an entry to the specified JAR file |
void |
write(ProtectionLauncherConfig aConfig,
java.io.OutputStream anOutputStream)
Encodes and writes ProtectionLauncherConfig to the specified stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean fVerbose
protected boolean fSkipEncryption
protected java.lang.String fSecurityAlgorithm
protected byte[] fEncryptKeyBytes
protected SecurityProvider fSecurityProvider
| Constructor Detail |
|---|
public ProtectionLauncherConfigWriter()
ProtectionLauncherConfigWriter
public ProtectionLauncherConfigWriter(java.lang.String aSecurityAlgorithm,
byte[] aEncryptKeyBytes)
public ProtectionLauncherConfigWriter(Product aProduct)
ProtectionLauncherConfigWriter
aProduct - product to create writer for| Method Detail |
|---|
protected SecurityProvider getSecurityProvider()
public java.lang.String getSecurityAlgorithm()
public void setSecurityAlgorithm(java.lang.String aSecurityAlgorithm)
aSecurityAlgorithm - resurity algorithmpublic byte[] getEncryptKeyBytes()
public void setEncryptKeyBytes(byte[] aEncryptKeyBytes)
aEncryptKeyBytes - key bytespublic boolean isSkipEncryption()
true ProtectionLauncherConfig encryption should be skipped, false
otherwise.public void setSkipEncryption(boolean aSkipEncryption)
aSkipEncryption - true if ProtectionLauncherConfig encryption should be skipped, false
otherwise.public boolean isVerbose()
true if writer runs in verbose mode, false
otherwise.public void setVerbose(boolean aVerbose)
stderr.
Otherwise there is no output generated in order to prevent the "code flow" analysis.
aVerbose - true if writer should run in verbose mode,
false otherwise.
public void write(ProtectionLauncherConfig aConfig,
java.io.OutputStream anOutputStream)
throws java.io.IOException
aConfig - ProtectionLauncherConfig to encode and writeanOutputStream - stream to write ProtectionLauncherConfig to
java.io.IOException - in case of writing errorprotected void error(java.lang.Throwable aThrowable)
public void write(ProtectionLauncherConfig aConfig,
java.io.File aFile)
throws java.io.IOException
aConfig - ProtectionLauncherConfig to encode and writeaFile - file to write ProtectionLauncherConfig to
java.io.IOException - in case of writing error
public void write(ProtectionLauncherConfig aConfig,
java.io.File aJarFile,
java.lang.String anEntryName)
throws java.io.IOException
aConfig - ProtectionLauncherConfig to encode and writeaJarFile - JAR file to write ProtectionLauncherConfig toanEntryName - name of entry to save ProtectionLauncherConfig to
java.io.IOException - in case of writing error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||