public class DesKeyGenHandler extends Object implements org.forgerock.http.Handler
{
"name": "KeyGenerator",
"type": "DesKeyGenHandler"
}
When called, it generates a base64-encoded DES key,
and returns the "key" value in a JSON response:
{"key":"/R/9khUxnaQ="}
If the handler fails to find a key generator for DES keys,
then it does not return a "key", but instead returns an "error":
{"error":"Failed to generate a key: ..."}
Modifier and Type | Class and Description |
---|---|
static class |
DesKeyGenHandler.Heaplet
Creates and initializes a DES key generator handler in a heap environment.
|
Constructor and Description |
---|
DesKeyGenHandler() |
Modifier and Type | Method and Description |
---|---|
org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> |
handle(org.forgerock.services.context.Context context,
org.forgerock.http.protocol.Request request) |
public org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> handle(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request)
handle
in interface org.forgerock.http.Handler
Copyright © 2025 Open Identity Platform Community. All rights reserved.