shutdown
Shuts down the factory and closes all cached KMS instances that implement AutoCloseable.
This method:
Closes all cached instances that implement
AutoCloseableClears the cache
Prevents creation of new instances (subsequent calls will throw
IllegalStateException)
Important: After calling this method, the factory cannot be used to create new instances. This is automatically called during JVM shutdown via a shutdown hook.
Throws
if called from a provider's creation callback