Package org.xwiki.crypto
Interface KeyGenerator
-
@Role public interface KeyGenerator
Component role for a key pair generator. Component providing this role is usually tightly coupled with those implementing the AsymmetricKeyFactory for the same hints. So, overriding one of these components usually requires to override both.- Since:
- 5.4M1
- Version:
- $Id: 4a1ca6f4795a77b024f469c3c286999906d58502 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
generate()
byte[]
generate(KeyGenerationParameters params)
Generate a new key based on given parameters.
-
-
-
Method Detail
-
generate
byte[] generate()
- Returns:
- a new key based on default parameters.
-
generate
byte[] generate(KeyGenerationParameters params)
Generate a new key based on given parameters.- Parameters:
params
- the key generation parameters.- Returns:
- a new key pair based the given parameters.
-
-