public class JCAContext extends Object
provider
and
secure random generator
.Constructor and Description |
---|
JCAContext()
Creates a new default JCA context.
|
JCAContext(Provider provider,
SecureRandom randomGen)
Creates a new JCA context.
|
Modifier and Type | Method and Description |
---|---|
Provider |
getProvider()
Gets the JCA provider to be used for all operations.
|
SecureRandom |
getSecureRandom()
Gets the secure random generator.
|
void |
setProvider(Provider provider)
Sets the JCA provider to be used for all operations.
|
void |
setSecureRandom(SecureRandom randomGen)
Sets a specific secure random generator for the initialisation
vector and other purposes requiring a random number.
|
public JCAContext()
public JCAContext(Provider provider, SecureRandom randomGen)
provider
- The JCA provider, null
to use the default
system one.randomGen
- The specific secure random generator, null
to use the default system one.public Provider getProvider()
null
implies the default
system provider.public void setProvider(Provider provider)
provider
- The JCA provider to be used for all operations where
a more specific one is absent, null
to use
the default system provider.public SecureRandom getSecureRandom()
public void setSecureRandom(SecureRandom randomGen)
randomGen
- The secure random generator, null
to use
the default system one.Copyright © 2017 Connect2id Ltd.. All rights reserved.