|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.Provider | +--com.rsa.certj.provider.random.DefaultRandom
This class implements the default Cert-J random service provider.
It uses HWRandom
if available. If not,
it uses SHA1Random
.
Constructor Summary |
|
DefaultRandom(String name)
Constructs an instance of |
|
DefaultRandom(String name,
byte[] seed)
Constructs an instance of |
|
DefaultRandom(String name,
long seed)
Constructs an instance of |
Method Summary |
|
instantiate(CertJ certJ)
Creates a |
Methods inherited from class com.rsa.certj.Provider |
getName, getType |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultRandom(String name) throws InvalidParameterException
DefaultRandom
named
name.Parameters
name | A |
Throws
InvalidParameterException
- If any
argument is invalid.public DefaultRandom(String name, long seed) throws InvalidParameterException
DefaultRandom
named
name, using the given long
value
as a seed.Parameters
name | A | ||
seed | A |
Throws
InvalidParameterException
- If any
argument is invalid.public DefaultRandom(String name, byte[] seed) throws InvalidParameterException
DefaultRandom
named
name, using the given byte
array
as a seed.Parameters
name | A | ||
seed | A |
Throws
InvalidParameterException
- If any
argument is invalid.Method Detail |
public ProviderImplementation instantiate(CertJ certJ) throws ProviderManagementException
ProviderImplementation
object that
handles the default random SPI methods.
This method is called by CertJ.registerService
when
an object of the DefaultRandom
class is being
registered. Applications do not have to call this method.Overrides
instantiate
in class Provider
Parameters
certJ | A |
Returns
ProviderImplementation
object that
provides the default random SPI implementations.
Throws
ProviderManagementException
- If
instantiation of the default random provider fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |