|
SafeAPI v1.20 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.safeapi.CryptoCommon
Defines methods to all SafeAPI sister CryptoXxx classes;
must not be used directly and is instancied by sister CryptoXxx classes.
CryptoCommon contains
getParameter()
and setParameter()
.isOperationOK()
,
getRegisteredError()
,
getRawError()
.
Constructor Summary | |
CryptoCommon()
Loads an instance of CryptoCommon. |
Method Summary | |
void |
createSeedFile(String sTitle,
String sCaption)
Generates a new random seed file. |
String |
getParameter(String sParmName)
Get API Parameters. |
byte[] |
getRandomBytes(String sMsg4K)
Generates 24 pseudo random bytes using the provided data (should be 4K) as a seed. |
String |
getRawError()
Returns the necessary infos about last error |
String |
getRegisteredError()
Returns the status code for a registered error and CRYPTO_UNKNOWN_ERROR for a unregistered one. |
String |
getVersion()
Returns a string with API name, version and release date. |
boolean |
isOperationOK()
Indicates whereas the last operation succeeded or not |
boolean |
setParameter(String sParmName,
String sValue)
Set API parameters. |
void |
wipe(String sFilePath,
int nSecurityLevel)
Wipe the specified file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CryptoCommon()
Method Detail |
public boolean isOperationOK()
public String getParameter(String sParmName)
Parms
.
sParmName
- the name of the parameter to update
public boolean setParameter(String sParmName, String sValue)
Parms
.
sParmName
- The name for the parameter to modifysValue
- The new value for this parameter
public String getVersion()
public String getRegisteredError()
Status
public String getRawError()
public void createSeedFile(String sTitle, String sCaption)
sTitle
- The seed window titlesCaption
- The seed window captionpublic byte[] getRandomBytes(String sMsg4K)
sMsg4K
- The data to use as seed
public void wipe(String sFilePath, int nSecurityLevel)
sFilePath
- the file to deletenSecurityLevel
- Between 1 (Low) and 3 (High)
|
SafeAPI v1.20 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |