|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aselect.authspserver.crypto.CryptoEngine
public class CryptoEngine
The A-Select AuthSP CryptoEngine.
Description:
Its function is to load the default AuthSP signing key and generate/verify
signatures.
Concurrency issues:
-
| Constructor Summary | |
|---|---|
CryptoEngine(java.lang.String sWorkingDir,
AuthSPSystemLogger oAuthSPSystemLogger)
Constructor for CryptoEngine. |
|
| Method Summary | |
|---|---|
java.lang.String |
generateSignature(java.lang.String sData)
Generates a signature of the supplied data. |
java.lang.String |
getDescription()
Short description. |
boolean |
verifyMySignature(java.lang.String sData,
java.lang.String sSignature)
This function verifies a signature generated with our private key. |
boolean |
verifySignature(java.lang.String sAlias,
java.lang.String sData,
java.lang.String sSignature)
Verifies a signature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CryptoEngine(java.lang.String sWorkingDir,
AuthSPSystemLogger oAuthSPSystemLogger)
throws ASelectException
CryptoEngine.
nullnull and must be
initialized
sWorkingDir - The directory of the AuthSP Server where the keystores
are located.oAuthSPSystemLogger - The logger that is used for system logging.
ASelectException - if the Crypto engine can not be initialized.| Method Detail |
|---|
public java.lang.String generateSignature(java.lang.String sData)
throws ASelectException
String by using
the AuthSP private key.
null
sData - the data that should be signed
null when signature could not be generated or the
signatue of the supplied data as a String
ASelectException - If generating fails.
public boolean verifySignature(java.lang.String sAlias,
java.lang.String sData,
java.lang.String sSignature)
nullnullnullLevel.FINE if the verification was not
succesfull.
sAlias - the alias that is used to identify the public key that is
used for verificationsData - contains the data that is signedsSignature - the signature that must be verified
TRUE if the signature is successfully verified or
FALSE if it could not be verified.public java.lang.String getDescription()
String representation of this Object.
public boolean verifyMySignature(java.lang.String sData,
java.lang.String sSignature)
nullnullLevel.FINE if the verification was not
succesfull.
sData - The data from which the supplied signature is created.sSignature - The signature of the supplied data.
TRUE if the signature is successfully verified or
FALSE if it could not be verified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||