|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CryptoProvider
Crypto Provider interface for encrypting and decrypting services.
| Method Summary | |
|---|---|
byte[] |
base64Decode(String string)
base64Decode. |
String |
base64Encode(byte[] bytes)
base64Encode. |
Mac |
createMac(SecurityAlgorithm algorithm,
byte[] secret)
createMac. |
int |
decryptAsymm(PrivateKey decryptingKey,
SecurityAlgorithm algorithm,
byte[] dataToDecrypt,
byte[] output,
int outputOffset)
decryptAsymm. |
int |
decryptSymm(SecurityToken token,
byte[] dataToDecrypt,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
decryptSymm. |
void |
encryptAsymm(PublicKey encryptingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToEncrypt,
byte[] output,
int outputOffset)
encryptAsymm. |
int |
encryptSymm(SecurityToken token,
byte[] dataToEncrypt,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
encryptSymm. |
byte[] |
signAsymm(PrivateKey senderPrivate,
SecurityAlgorithm algorithm,
byte[] dataToSign)
signAsymm. |
void |
signSymm(SecurityToken token,
byte[] input,
int verifyLen,
byte[] output)
signSymm. |
boolean |
verifyAsymm(PublicKey signingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToVerify,
byte[] signature)
verifyAsymm. |
void |
verifySymm(SecurityToken token,
byte[] dataToVerify,
byte[] signature)
verifySymm. |
| Method Detail |
|---|
byte[] base64Decode(String string)
base64Decode.
string - a String object.
String base64Encode(byte[] bytes)
base64Encode.
bytes - an array of byte.
String object.
Mac createMac(SecurityAlgorithm algorithm,
byte[] secret)
throws ServiceResultException
createMac.
algorithm - a SecurityAlgorithm object.secret - an array of byte.
Mac object.
ServiceResultException - if any.
int decryptAsymm(PrivateKey decryptingKey,
SecurityAlgorithm algorithm,
byte[] dataToDecrypt,
byte[] output,
int outputOffset)
throws ServiceResultException
decryptAsymm.
decryptingKey - a PrivateKey object.algorithm - a SecurityAlgorithm object.dataToDecrypt - an array of byte.output - an array of byte.outputOffset - a int.
ServiceResultException - if any.
int decryptSymm(SecurityToken token,
byte[] dataToDecrypt,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws ServiceResultException
decryptSymm.
token - a SecurityToken object.dataToDecrypt - an array of byte.inputOffset - a int.inputLength - a int.output - an array of byte.outputOffset - a int.
ServiceResultException - if any.
void encryptAsymm(PublicKey encryptingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToEncrypt,
byte[] output,
int outputOffset)
throws ServiceResultException
encryptAsymm.
encryptingCertificate - a PublicKey object.algorithm - a SecurityAlgorithm object.dataToEncrypt - an array of byte.output - an array of byte.outputOffset - a int.
ServiceResultException - if any.
int encryptSymm(SecurityToken token,
byte[] dataToEncrypt,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws ServiceResultException
encryptSymm.
token - a SecurityToken object.dataToEncrypt - an array of byte.inputOffset - a int.inputLength - a int.output - an array of byte.outputOffset - a int.
ServiceResultException - if any.
byte[] signAsymm(PrivateKey senderPrivate,
SecurityAlgorithm algorithm,
byte[] dataToSign)
throws ServiceResultException
signAsymm.
senderPrivate - a PrivateKey object.algorithm - a SecurityAlgorithm object.dataToSign - an array of byte.
ServiceResultException - if any.
void signSymm(SecurityToken token,
byte[] input,
int verifyLen,
byte[] output)
throws ServiceResultException
signSymm.
token - a SecurityToken object.input - an array of byte.verifyLen - a int.output - an array of byte.
ServiceResultException - if any.
boolean verifyAsymm(PublicKey signingCertificate,
SecurityAlgorithm algorithm,
byte[] dataToVerify,
byte[] signature)
throws ServiceResultException
verifyAsymm.
signingCertificate - a PublicKey object.algorithm - a SecurityAlgorithm object.dataToVerify - an array of byte.signature - an array of byte.
ServiceResultException - if any.
void verifySymm(SecurityToken token,
byte[] dataToVerify,
byte[] signature)
throws ServiceResultException
verifySymm.
token - a SecurityToken object.dataToVerify - an array of byte.signature - an array of byte.
ServiceResultException - if any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||