APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.security.ssl

pack-priv final Class EphemeralKeyManager

extends Object
Class Inheritance
Imports
java.security.*, java.util.concurrent.locks.ReentrantLock

The "KeyManager" for ephemeral RSA keys. Ephemeral DH and ECDH keys are handled by the DHCrypt and ECDHCrypt classes, respectively.
Author
Andreas Sterbenz

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
EphemeralKeyManager.EphemeralKeyPair

Inner class to handle storage of ephemeral KeyPairs.

Field Summary

Modifier and TypeField and Description
private final ReentrantLock
private static final int
private static final int
private final EphemeralKeyManager.EphemeralKeyPair[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv KeyPair
getRSAKeyPair(boolean export, SecureRandom random)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cachedKeysLockback to summary
private final ReentrantLock cachedKeysLock
INDEX_RSA1024back to summary
private static final int INDEX_RSA1024
INDEX_RSA512back to summary
private static final int INDEX_RSA512
keysback to summary
private final EphemeralKeyManager.EphemeralKeyPair[] keys

Constructor Detail

EphemeralKeyManagerback to summary
pack-priv EphemeralKeyManager()

Method Detail

getRSAKeyPairback to summary
pack-priv KeyPair getRSAKeyPair(boolean export, SecureRandom random)
sun.security.ssl back to summary

private Class EphemeralKeyManager.EphemeralKeyPair

extends Object
Class Inheritance

Inner class to handle storage of ephemeral KeyPairs.

Field Summary

Modifier and TypeField and Description
private final long
private KeyPair
private static final int
private static final long
private int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private KeyPair
private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expirationTimeback to summary
private final long expirationTime
keyPairback to summary
private KeyPair keyPair
MAX_USEback to summary
private static final int MAX_USE
USE_INTERVALback to summary
private static final long USE_INTERVAL
usesback to summary
private int uses

Constructor Detail

EphemeralKeyPairback to summary
private EphemeralKeyPair(KeyPair keyPair)

Method Detail

getKeyPairback to summary
private KeyPair getKeyPair()
isValidback to summary
private boolean isValid()