|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.priv.pro.IntegrityHostProConfigWriter
public class IntegrityHostProConfigWriter
This class is intended to encode and write IntegrityHostPro.Config 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 | |
|---|---|
IntegrityHostProConfigWriter()
Creates a new instance of the CRCHostProConfigWriter |
|
IntegrityHostProConfigWriter(Product aProduct)
Creates a new instance of the CRCHostProConfigWriter |
|
| Method Summary | |
|---|---|
protected void |
error(java.lang.Throwable aThrowable)
|
byte[] |
getEncryptKeyBytes()
Returns bytes array that specifies key used to encrypt the IntegrityHostPro.Config. |
java.lang.String |
getSecurityAlgorithm()
Returns security algorithm to be used to encode IntegrityHostPro.Config's |
protected SecurityProvider |
getSecurityProvider()
|
boolean |
isSkipEncryption()
Checks whether IntegrityHostPro.Config encryption should be skipped. |
boolean |
isVerbose()
Checks whether writer runs in verbose mode. |
static void |
main(java.lang.String[] args)
|
void |
setEncryptKeyBytes(byte[] aEncryptKeyBytes)
Specifies bytes array that represents key used to encrypt the IntegrityHostPro.Config. |
void |
setSecurityAlgorithm(java.lang.String aSecurityAlgorithm)
Specifies security algorithm to be used to encode IntegrityHostPro.Config's |
void |
setSkipEncryption(boolean aSkipEncryption)
Specifies that IntegrityHostPro.Config encryption should be skipped. |
void |
setVerbose(boolean aVerbose)
Specifies that writer should run in verbose mode. |
void |
write(IntegrityHostPro.Config aConfig,
java.io.File aFile)
Encodes and writes IntegrityHostPro.Config to the specified file |
void |
write(IntegrityHostPro.Config aConfig,
java.io.File aJarFile,
java.lang.String anEntryName)
Encodes and writes IntegrityHostPro.Config as an entry to the specified JAR file |
void |
write(IntegrityHostPro.Config aConfig,
java.io.OutputStream anOutputStream)
Encodes and writes IntegrityHostPro.Config 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 IntegrityHostProConfigWriter()
CRCHostProConfigWriter
public IntegrityHostProConfigWriter(Product aProduct)
CRCHostProConfigWriter
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 IntegrityHostPro.Config encryption should be skipped, false
otherwise.public void setSkipEncryption(boolean aSkipEncryption)
aSkipEncryption - true if IntegrityHostPro.Config 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(IntegrityHostPro.Config aConfig,
java.io.OutputStream anOutputStream)
throws java.io.IOException
aConfig - IntegrityHostPro.Config to encode and writeanOutputStream - stream to write IntegrityHostPro.Config to
java.io.IOException - in case of writing errorprotected void error(java.lang.Throwable aThrowable)
public void write(IntegrityHostPro.Config aConfig,
java.io.File aFile)
throws java.io.IOException
aConfig - IntegrityHostPro.Config to encode and writeaFile - file to write IntegrityHostPro.Config to
java.io.IOException - in case of writing error
public void write(IntegrityHostPro.Config aConfig,
java.io.File aJarFile,
java.lang.String anEntryName)
throws java.io.IOException
aConfig - IntegrityHostPro.Config to encode and writeaJarFile - JAR file to write IntegrityHostPro.Config toanEntryName - name of entry to save IntegrityHostPro.Config to
java.io.IOException - in case of writing errorpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||