public class TOKENDUMP extends NamedWarpScriptFunction implements WarpScriptStackFunction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_PARAMS |
| Constructor and Description |
|---|
TOKENDUMP(java.lang.String name,
KeyStore keystore,
boolean warpKeystore)
Create the TOKENDUMP function.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(WarpScriptStack stack) |
java.util.Map<java.lang.String,java.lang.Object> |
mapFromToken(org.apache.thrift.TBase token) |
getName, refSnapshot, setName, toStringpublic static final java.lang.String KEY_PARAMS
public TOKENDUMP(java.lang.String name,
KeyStore keystore,
boolean warpKeystore)
name - The name of the function.keystore - The keystore containing the AES and SipHash keys to decode tokens when no such keys are given when applying this function.warpKeystore - Whether the given keystore is that of a Warp/WarpDist instance. If true, a secret is needed to access the keystore keys.public java.lang.Object apply(WarpScriptStack stack) throws WarpScriptException
apply in interface WarpScriptStackFunctionWarpScriptExceptionpublic java.util.Map<java.lang.String,java.lang.Object> mapFromToken(org.apache.thrift.TBase token)