|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jp.protection.priv.LicenseWriter
public class LicenseWriter
This class is intended to encode and write licenses to the file or output stream
Field Summary | |
---|---|
protected byte[] |
fEncryptKeyBytes
|
protected SecurityProvider |
fSecurityProvider
|
protected boolean |
fSkipEncryption
|
protected boolean |
fVerbose
|
Constructor Summary | |
---|---|
LicenseWriter()
Creates a new instance of the LicenseWriter |
Method Summary | |
---|---|
static void |
checkLicense(boolean aForceLicenseRead)
|
static LicenseWriter |
createLicenseWriter()
Creates a new instance of the LicenseWriter |
byte[] |
getEncryptKeyBytes()
Returns bytes array that specifies key used to encrypt the license. |
byte[] |
getPublicKeyBytes()
Deprecated. use getEncryptKeyBytes() instead |
boolean |
isSkipEncryption()
Checks whether license encryption should be skipped. |
boolean |
isVerbose()
Checks whether writer runs in verbose mode. |
static void |
release()
Releases all the static resources acquired by License Writer's |
static void |
reset()
|
void |
setEncryptKeyBytes(byte[] aEncryptKeyBytes)
Specifies bytes array that represents key used to encrypt the license. |
void |
setPublicKeyBytes(byte[] aPublicKeyBytes)
Deprecated. use setEncryptKeyBytes(...) instead |
void |
setSkipEncryption(boolean aSkipEncryption)
Specifies that license encryption should be skipped. |
void |
setVerbose(boolean aVerbose)
Specifies that writer should run in verbose mode. |
void |
writeLicense(License aLicense,
java.io.File aFile)
Encodes and writes license to the specified file |
void |
writeLicense(License aLicense,
java.io.OutputStream anOutputStream)
Encodes and writes license 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 byte[] fEncryptKeyBytes
protected SecurityProvider fSecurityProvider
Constructor Detail |
---|
public LicenseWriter()
LicenseWriter
Method Detail |
---|
public static LicenseWriter createLicenseWriter()
LicenseWriter
LicenseWriter
public byte[] getEncryptKeyBytes()
public void setEncryptKeyBytes(byte[] aEncryptKeyBytes)
aEncryptKeyBytes
- key bytespublic byte[] getPublicKeyBytes()
getEncryptKeyBytes()
instead
public void setPublicKeyBytes(byte[] aPublicKeyBytes)
setEncryptKeyBytes(...)
instead
aPublicKeyBytes
- public key bytespublic boolean isSkipEncryption()
true
license encryption should be skipped, false
otherwise.public void setSkipEncryption(boolean aSkipEncryption)
aSkipEncryption
- true
if license 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 writeLicense(License aLicense, java.io.OutputStream anOutputStream) throws java.io.IOException
aLicense
- license to encode and writeanOutputStream
- stream to write license to
java.io.IOException
- in case of writing errorpublic void writeLicense(License aLicense, java.io.File aFile) throws java.io.IOException
aLicense
- license to encode and writeaFile
- file to write license to
java.io.IOException
- in case of writing errorpublic static void reset()
public static void release()
public static void checkLicense(boolean aForceLicenseRead)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |