|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jp.protection.pub.launch.ProtectionLauncherConfigReader
public class ProtectionLauncherConfigReader
This class allows reading of launcher configuration
Field Summary | |
---|---|
protected byte[] |
fDecryptKeyBytes
|
protected java.lang.String |
fSecurityAlgorithm
|
protected SecurityProvider |
fSecurityProvider
|
protected boolean |
fSkipEncryption
|
protected boolean |
fVerbose
|
Constructor Summary | |
---|---|
ProtectionLauncherConfigReader()
Creates a new instance of reader |
|
ProtectionLauncherConfigReader(java.lang.String aSecurityAlgorithm,
byte[] aDecryptKeyBytes)
Creates a new instance of reader and initializes it with security algorithm and decrypt key bytes. |
Method Summary | |
---|---|
protected void |
error(java.lang.Throwable aThrowable)
|
byte[] |
getDecryptKeyBytes()
Returns bytes array that specifies key used to decrypt the ProtectionLauncherConfig. |
java.lang.String |
getSecurityAlgorithm()
Returns security algorithm to be used to decode ProtectionLauncherConfig's |
protected SecurityProvider |
getSecurityProvider()
|
boolean |
isSkipEncryption()
Checks whether ProtectionLauncherConfig encryption should be skipped. |
boolean |
isVerbose()
Checks whether reader runs in verbose mode. |
protected ProtectionLauncherConfig |
read(byte[] aConfigBytes)
|
ProtectionLauncherConfig |
read(java.lang.Class aBaseClass,
java.lang.String aResourceName)
Reads and decodes ProtectionLauncherConfig from the specified resource |
ProtectionLauncherConfig |
read(java.io.File aFile)
Reads and decodes ProtectionLauncherConfig from the specified file |
ProtectionLauncherConfig |
read(java.io.File aJarFile,
java.lang.String anEntryName)
Reads and decodes ProtectionLauncherConfig from an entry of the specified JAR file |
ProtectionLauncherConfig |
read(java.io.InputStream anInputStream)
Reads and decodes ProtectionLauncherConfig from the specified stream |
void |
setDecryptKeyBytes(byte[] aDecryptKeyBytes)
Specifies bytes array that represents key used to decrypt the ProtectionLauncherConfig. |
void |
setDecryptKeyBytes(java.lang.String aDecryptKeyBytes)
Specifies bytes array used to restore the key required to decrypt the the ProtectionLauncherConfig. |
void |
setSecurityAlgorithm(java.lang.String aSecurityAlgorithm)
Specifies security algorithm to be used to decode ProtectionLauncherConfig's |
void |
setSkipEncryption(boolean aSkipEncryption)
Specifies that ProtectionLauncherConfig 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 ProtectionLauncherConfigReader()
public ProtectionLauncherConfigReader(java.lang.String aSecurityAlgorithm, byte[] aDecryptKeyBytes)
aSecurityAlgorithm
- security algorithmaDecryptKeyBytes
- byte[] decrypt key bytesMethod 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
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 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 ProtectionLauncherConfig read(java.io.InputStream anInputStream) throws java.io.IOException
anInputStream
- stream to read ProtectionLauncherConfig from
java.io.IOException
- in case of reading errorpublic ProtectionLauncherConfig read(java.lang.Class aBaseClass, java.lang.String aResourceName) throws java.io.IOException
aBaseClass
- base class for resource loading via call of aBaseCLass.getResourceAsStream(...)
aResourceName
- resource to read ProtectionLauncherConfig from
java.io.IOException
- in case of reading errorprotected ProtectionLauncherConfig read(byte[] aConfigBytes) throws java.io.IOException
java.io.IOException
public ProtectionLauncherConfig read(java.io.File aFile) throws java.io.IOException
aFile
- file to read ProtectionLauncherConfig from
java.io.IOException
- in case of reading errorpublic ProtectionLauncherConfig read(java.io.File aJarFile, java.lang.String anEntryName) throws java.io.IOException
aJarFile
- JAR file to read ProtectionLauncherConfig fromanEntryName
- name of entry to read ProtectionLauncherConfig 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 |