Interface AsynchronousKeyFactory
-
- All Known Implementing Classes:
Rsa256AynchronousKeyFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface AsynchronousKeyFactory
Factory for asynchronousKeyPair
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.security.KeyPair
createAsynchronousKeyPair()
Creates an asynchronousKeyPair
.default void
init(SourceContext context)
Allows for theAsynchronousKeyFactory
to be configured.
-
-
-
Method Detail
-
init
default void init(SourceContext context)
Allows for theAsynchronousKeyFactory
to be configured.- Parameters:
context
-SourceContext
.
-
createAsynchronousKeyPair
java.security.KeyPair createAsynchronousKeyPair() throws java.lang.Exception
Creates an asynchronousKeyPair
.- Returns:
- Asynchronous
KeyPair
. - Throws:
java.lang.Exception
- If fails to create asynchronousKeyPair
.
-
-