Package org.forgerock.openig.handler
Class DesKeyGenHandler
- java.lang.Object
-
- org.forgerock.openig.handler.DesKeyGenHandler
-
- All Implemented Interfaces:
org.forgerock.http.Handler
public class DesKeyGenHandler extends Object implements org.forgerock.http.Handler
Creates a static response with a generated DES key.
This handler takes no configuration settings.
When called, it generates a base64-encoded DES key, and returns the "key" value in a JSON response:{ "name": "KeyGenerator", "type": "DesKeyGenHandler" }
If the handler fails to find a key generator for DES keys, then it does not return a "key", but instead returns an "error":{"key":"/R/9khUxnaQ="}{"error":"Failed to generate a key: ..."}
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDesKeyGenHandler.HeapletCreates and initializes a DES key generator handler in a heap environment.
-
Constructor Summary
Constructors Constructor Description DesKeyGenHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
handle
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)- Specified by:
handlein interfaceorg.forgerock.http.Handler
-
-