|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.pro.IntegrityHostProConfigReader
public class IntegrityHostProConfigReader
This class allows reading IntegrityHostPro.Config configuration.
| Field Summary | |
|---|---|
protected byte[] |
fDecryptKeyBytes
|
protected java.lang.String |
fSecurityAlgorithm
|
protected SecurityProvider |
fSecurityProvider
|
protected boolean |
fSkipEncryption
|
protected boolean |
fVerbose
|
| Constructor Summary | |
|---|---|
IntegrityHostProConfigReader()
Creates a new instance of reader. |
|
| Method Summary | |
|---|---|
protected void |
error(java.lang.Throwable aThrowable)
|
byte[] |
getDecryptKeyBytes()
Returns bytes array that specifies key used to decrypt the IntegrityHostPro.Config. |
java.lang.String |
getSecurityAlgorithm()
Returns security algorithm to be used to decode IntegrityHostPro.Config's |
protected SecurityProvider |
getSecurityProvider()
|
boolean |
isSkipEncryption()
Checks whether IntegrityHostPro.Config encryption should be skipped. |
boolean |
isVerbose()
Checks whether reader runs in verbose mode. |
protected void |
read(IntegrityHostPro.Config aConfig,
byte[] aConfigBytes)
|
void |
read(IntegrityHostPro.Config aConfig,
java.io.File aFile)
Reads and decodes IntegrityHostPro.Config from the specified file |
void |
read(IntegrityHostPro.Config aConfig,
java.io.File aJarFile,
java.lang.String anEntryName)
Reads and decodes IntegrityHostPro.Config from an entry of the specified JAR file |
void |
read(IntegrityHostPro.Config aConfig,
java.io.InputStream anInputStream)
Reads and decodes IntegrityHostPro.Config from the specified stream |
void |
read(IntegrityHostPro.Config aConfig,
java.lang.String aResourceName)
Reads and decodes IntegrityHostPro.Config from the specified resource |
void |
setDecryptKeyBytes(byte[] aDecryptKeyBytes)
Specifies bytes array that represents key used to decrypt the IntegrityHostPro.Config. |
void |
setDecryptKeyBytes(java.lang.String aDecryptKeyBytes)
Specifies bytes array used to restore the key required to decrypt the the IntegrityHostPro.Config. |
void |
setSecurityAlgorithm(java.lang.String aSecurityAlgorithm)
Specifies security algorithm to be used to decode IntegrityHostPro.Config's |
void |
setSkipEncryption(boolean aSkipEncryption)
Specifies that IntegrityHostPro.Config encryption should be skipped. |
void |
setVerbose(boolean aVerbose)
Specifies that reader should run in verbose mode. |
| 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[] fDecryptKeyBytes
protected SecurityProvider fSecurityProvider
| Constructor Detail |
|---|
public IntegrityHostProConfigReader()
| Method Detail |
|---|
protected SecurityProvider getSecurityProvider()
public java.lang.String getSecurityAlgorithm()
public void setSecurityAlgorithm(java.lang.String aSecurityAlgorithm)
aSecurityAlgorithm - resurity algorithmpublic byte[] getDecryptKeyBytes()
public void setDecryptKeyBytes(byte[] aDecryptKeyBytes)
aDecryptKeyBytes - key bytespublic void setDecryptKeyBytes(java.lang.String aDecryptKeyBytes)
aDecryptKeyBytes - decrypt key bytes as String e.g. "1, 23, 45, 23, -1"public 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 reader 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 reader should run in verbose mode,
false otherwise.protected void error(java.lang.Throwable aThrowable)
public void read(IntegrityHostPro.Config aConfig,
java.io.InputStream anInputStream)
throws java.io.IOException
aConfig - IntegrityHostPro.Config to read and decodeanInputStream - stream to read IntegrityHostPro.Config from
java.io.IOException - in case of reading error
public void read(IntegrityHostPro.Config aConfig,
java.lang.String aResourceName)
throws java.io.IOException
aConfig - IntegrityHostPro.Config to read and decodeaResourceName - resource to read IntegrityHostPro.Config from
java.io.IOException - in case of reading error
protected void read(IntegrityHostPro.Config aConfig,
byte[] aConfigBytes)
throws java.io.IOException
java.io.IOException
public void read(IntegrityHostPro.Config aConfig,
java.io.File aFile)
throws java.io.IOException
aConfig - IntegrityHostPro.Config to read and decodeaFile - file to read IntegrityHostPro.Config from
java.io.IOException - in case of reading error
public void read(IntegrityHostPro.Config aConfig,
java.io.File aJarFile,
java.lang.String anEntryName)
throws java.io.IOException
aConfig - IntegrityHostPro.Config to read and decodeaJarFile - JAR file to read IntegrityHostPro.Config fromanEntryName - name of entry to read IntegrityHostPro.Config from
java.io.IOException - in case of reading error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||