| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private JcaJceHelper |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public JcaTlsCrypto | Returns: a new JcaTlsCrypto.SecureRandom for generating key material and seeds for nonce generation. random)Implements org. Create a new JcaTlsCrypto using the current builder configuration and the passed in entropy source.. |
| public JcaTlsCrypto | Returns: a new JcaTlsCrypto.SecureRandom for generating key material. keyRandom, SecureRandom SecureRandom for generating nonces. nonceRandom)Implements org. Create a new JcaTlsCrypto using the current builder configuration. |
| public JcaJceHelper | |
| public JcaTlsCryptoProvider | Returns: the current builder instance.the provider class to source cryptographic services from. provider)Set the provider of cryptographic services for any JcaTlsCrypto we build. |
| public JcaTlsCryptoProvider | Returns: the current builder instance.the name of the provider class to source cryptographic services from. providerName)Set the provider of cryptographic services for any JcaTlsCrypto we build by name. |
| helper | back to summary |
|---|---|
| private JcaJceHelper helper | |
| JcaTlsCryptoProvider | back to summary |
|---|---|
| public JcaTlsCryptoProvider() | |
| create | back to summary |
|---|---|
| public JcaTlsCrypto create(SecureRandom random) Implements org. Create a new JcaTlsCrypto using the current builder configuration and the passed in entropy source..
| |
| create | back to summary |
|---|---|
| public JcaTlsCrypto create(SecureRandom keyRandom, SecureRandom nonceRandom) Implements org. Create a new JcaTlsCrypto using the current builder configuration.
| |
| getHelper | back to summary |
|---|---|
| public JcaJceHelper getHelper() | |
| setProvider | back to summary |
|---|---|
| public JcaTlsCryptoProvider setProvider(Provider provider) Set the provider of cryptographic services for any JcaTlsCrypto we build.
| |
| setProvider | back to summary |
|---|---|
| public JcaTlsCryptoProvider setProvider(String providerName) Set the provider of cryptographic services for any JcaTlsCrypto we build by name.
| |
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| NonceEntropySource | back to summary |
|---|---|
| pack-priv NonceEntropySource(JcaJceHelper helper, SecureRandom random) throws GeneralSecurityException | |
| Modifier and Type | Field and Description |
|---|---|
| private final MessageDigest | |
| private final byte[] | |
| private final SecureRandom | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | engineGenerateSeed(int
the number of seed bytes to generate. seedLen)Implements abstract java. Returns the given number of seed bytes. |
| protected void | engineNextBytes(byte[]
the array to be filled in with random bytes. bytes)Implements abstract java. Generates a user-specified number of random bytes. |
| protected void | engineSetSeed(byte[]
the seed. bytes)Implements abstract java. Reseeds this random object with the given seed. |
| private void |
| digest | back to summary |
|---|---|
| private final MessageDigest digest | |
| seed | back to summary |
|---|---|
| private final byte[] seed | |
| source | back to summary |
|---|---|
| private final SecureRandom source | |
| state | back to summary |
|---|---|
| private final byte[] state | |
| NonceEntropySourceSpi | back to summary |
|---|---|
| pack-priv NonceEntropySourceSpi(SecureRandom source, MessageDigest digest) | |
| engineGenerateSeed | back to summary |
|---|---|
| protected byte[] engineGenerateSeed(int seedLen) Implements abstract java. Doc from java. Returns the given number of seed bytes. This call may be used to seed other random number generators.
| |
| engineNextBytes | back to summary |
|---|---|
| protected void engineNextBytes(byte[] bytes) Implements abstract java. Doc from java. Generates a user-specified number of random bytes.
Some random number generators can only generate a limited amount
of random bytes per invocation. If the size of
| |
| engineSetSeed | back to summary |
|---|---|
| protected void engineSetSeed(byte[] bytes) Implements abstract java. Doc from java. Reseeds this random object with the given seed. The seed supplements, rather than replaces, the existing seed. Thus, repeated calls are guaranteed never to reduce randomness.
| |
| runDigest | back to summary |
|---|---|
| private void runDigest(byte[] x, byte[] y, byte[] z) | |