|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Algorithm
Describes the basic behavior of all crytographic algorithms.
| Method Summary | |
|---|---|
String |
getAlgorithm()
Gets the algorithm name. |
byte[] |
getRandomData(int nBytes)
Gets random bytes from the random provider of this instance in the amount specified. |
void |
setRandomProvider(SecureRandom random)
Sets the source of random data for cryptographic operations needing a random data source, such as generating a random salt value. |
| Method Detail |
|---|
String getAlgorithm()
void setRandomProvider(SecureRandom random)
random - Provider of cryptographically strong random data.byte[] getRandomData(int nBytes)
nBytes - Number of bytes of random data to retrieve.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||