public abstract class SecureRandomSpi extends Object implements Serializable
SecureRandom
类。在这个类中的所有抽象方法必须由各个服务提供者希望提供加密型强的伪随机数发生器的实现实现。
SecureRandom
,
Serialized Form
Constructor and Description |
---|
SecureRandomSpi() |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
engineGenerateSeed(int numBytes)
返回给定数量的种子字节数。
|
protected abstract void |
engineNextBytes(byte[] bytes)
生成指定数量的随机字节数。
|
protected abstract void |
engineSetSeed(byte[] seed)
重播这随机对象。
|
protected abstract void engineSetSeed(byte[] seed)
seed
的种子。
protected abstract void engineNextBytes(byte[] bytes)
如果一个电话engineSetSeed
未发生之前,对这种方法的第一次调用军队这种子本身提供的实现。这种自我播种时不会发生engineSetSeed
以前被称为。
bytes
-阵列是充满随机字节。
protected abstract byte[] engineGenerateSeed(int numBytes)
numBytes
-种子的字节数产生。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.