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