Interface KeyManagementService
- All Known Implementing Classes:
KeyManagementServiceImpl
public interface KeyManagementService
Pure key-lifecycle abstraction (generate, import, export, rotate, …). All
file parameters use
Path
for type-safety.-
Method Summary
Modifier and TypeMethodDescriptioncreateRotation
(String kid, GenerateKeySpec successor, ZonedDateTime scheduledAt) void
generateKey
(GenerateKeySpec spec) RotationJobResponse
getRotationJob
(String jobId) listKeys()
void
void
void
-
Method Details
-
generateKey
- Throws:
AnkaSecureSdkException
-
removeKey
- Throws:
AnkaSecureSdkException
-
revokeKey
- Throws:
AnkaSecureSdkException
-
listKeys
- Throws:
AnkaSecureSdkException
-
createRotation
ExportedKeySpec createRotation(String kid, GenerateKeySpec successor, ZonedDateTime scheduledAt) throws AnkaSecureSdkException - Throws:
AnkaSecureSdkException
-
patchKey
- Throws:
AnkaSecureSdkException
-
getRotationJob
- Throws:
AnkaSecureSdkException
-
getSupportedAlgorithms
- Throws:
AnkaSecureSdkException
-