Package zeroecho.core.spi
package zeroecho.core.spi
Provider contracts for context construction and exact key operations.
Algorithms bind each supported role to a ContextFactoryKS. Context
construction is an in-memory operation; stream attachment and processing are
responsible for reporting IOException.
Key capabilities are registered independently through
SymmetricKeyGenerator, SymmetricKeyImporter,
AsymmetricKeyPairGenerator, PublicKeyImporter, and
PrivateKeyImporter. A provider registers only the operations it
implements, so capability lookup fails before invocation instead of returning
an object with unsupported methods.
SPI implementations should be stateless or otherwise safe for concurrent lookup and invocation. Created cryptographic contexts remain operation-local and are not necessarily thread-safe.
- Since:
- 1.0
-
ClassDescriptionImmutable deterministic snapshot of installed execution capabilities.Trusted-code declaration of an installed cryptographic execution domain.Supported execution direction.Service-provider contract for trusted installed execution capabilities.AsymmetricKeyPairGenerator<S extends AlgorithmKeySpec>Generates asymmetric key pairs for one exact specification type.Optional service-provider interface for cryptographic primitives that need to share or persist per-session parameters using a
CtxInterface.Creates a cryptographic context from a key and a context specification.Supplies a fresh destroyable password for one keyring open operation.PrivateKeyImporter<S extends AlgorithmKeySpec>Imports private keys for one exact specification type.PublicKeyImporter<S extends AlgorithmKeySpec>Imports public keys for one exact specification type.SymmetricKeyGenerator<S extends AlgorithmKeySpec>Generates symmetric keys for one exact specification type.SymmetricKeyImporter<S extends AlgorithmKeySpec>Imports symmetric keys for one exact specification type.