Interface GenericJcaSignatureContext.EngineFactory
- Enclosing class:
GenericJcaSignatureContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory of initialized
Signature engines.
Implementations must return a ready-to-use Signature configured for
signing or verifying with the given key.
-
Method Summary
-
Method Details
-
create
Creates and initializes aSignaturefor the given key and mode.- Parameters:
key- key to initialize the engine with;PrivateKeyfor sign mode,PublicKeyfor verify modesignMode-truefor signing,falsefor verifying- Returns:
- initialized
Signatureready for incrementalupdate(...)calls - Throws:
GeneralSecurityException- if engine creation or initialization fails
-