Interface IKeyPairGenerationStrategy<TSpec extends IKeyPairGenerationSpec>
-
public interface IKeyPairGenerationStrategy<TSpec extends IKeyPairGenerationSpec>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyPairgenerate(TSpec spec)Generates a key pair based on the provided specification.booleanisSupported(IKeyPairGenerationSpec spec)Returns whether the given specification is supported by this strategy.
-
-
-
Method Detail
-
isSupported
boolean isSupported(IKeyPairGenerationSpec spec)
Returns whether the given specification is supported by this strategy.- Parameters:
spec- The specification to check.- Returns:
- true if the specification is supported, false otherwise.
-
generate
KeyPair generate(TSpec spec) throws FcCertificateManagementException
Generates a key pair based on the provided specification.- Parameters:
spec- The specification for generating the key pair.- Returns:
- The generated key pair.
- Throws:
FcCertificateManagementException- If an error occurs during key pair generation or if the specification is not valid.
-
-