Interface CryptoProvider.Session
- 
- Enclosing interface:
- CryptoProvider
 
 public static interface CryptoProvider.Session
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description CryptoProvidersgetCryptoProviders()Returns theCryptoProvidersinstance that created this session.<T> TgetStateValue(CryptoProvider cryptoProvider, java.util.function.Supplier<T> stateFactory)Retrieves a state object from the sessionvoidsetStateValue(CryptoProvider cryptoProvider, java.lang.Object value)Saves a state object into the session using the cryptoprovider's identity as the key
 
- 
- 
- 
Method Detail- 
setStateValuevoid setStateValue(CryptoProvider cryptoProvider, java.lang.Object value) Saves a state object into the session using the cryptoprovider's identity as the key- Parameters:
- cryptoProvider- the instance storing the value
- value- the value to store
 
 - 
getStateValue<T> T getStateValue(CryptoProvider cryptoProvider, java.util.function.Supplier<T> stateFactory) Retrieves a state object from the session- Type Parameters:
- T- the type of the state object
- Parameters:
- cryptoProvider- the CryptoProvider instance
- stateFactory- supplier that will create a new instance of the requested state object if not present in the session
- Returns:
- state object (either previously saved or newly created by the factory supplier)
 
 - 
getCryptoProvidersCryptoProviders getCryptoProviders() Returns theCryptoProvidersinstance that created this session.- Returns:
- the CryptoProvidersinstance that created this session
 
 
- 
 
-