Class KeyRotation.Builder<K>
java.lang.Object
cloud.opencode.base.crypto.rotation.KeyRotation.Builder<K>
- Type Parameters:
K- the key type - 密钥类型
- Enclosing class:
KeyRotation<K>
Builder for KeyRotation.
KeyRotation 构建器。
- Since:
- JDK 25, opencode-base-crypto V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionbuild()gracePeriod(Duration period) initialKey(K key) keyGenerator(Supplier<K> generator) maxVersions(int max) onRotation(Consumer<KeyRotation.RotationEvent> listener) rotationInterval(Duration interval)
-
Method Details
-
keyId
-
keyGenerator
-
rotationInterval
-
gracePeriod
-
maxVersions
-
initialKey
-
onRotation
-
build
-