public class CaptureContextImpl extends Object implements CaptureContext
| Constructor and Description |
|---|
CaptureContextImpl(String jwt) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
ctx(String type) |
Date |
getCreated()
JWT jti claim
|
Date |
getExpiry()
JWT jti claim
|
String |
getFlexOrigin() |
String |
getId()
JWT jti claim
|
Map<String,String> |
getJsonWebKey() |
PublicKey |
getPublicKey()
Retrieves a public encryption key from capture context.
|
String |
getTokensPath() |
String |
jwe(Map<String,Object> data)
Creates an encrypted JWT from provided data.
|
String |
toString()
Returns underlying Capture Context, as returned from CyberSource Flex service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromJwtpublic CaptureContextImpl(String jwt)
public final String getId()
CaptureContextgetId in interface CaptureContextpublic Date getExpiry()
CaptureContextgetExpiry in interface CaptureContextpublic Date getCreated()
CaptureContextgetCreated in interface CaptureContextpublic PublicKey getPublicKey()
CaptureContextgetPublicKey in interface CaptureContextpublic Map<String,String> getJsonWebKey()
getJsonWebKey in interface CaptureContextpublic String jwe(Map<String,Object> data)
CaptureContextjwe in interface CaptureContextdata - data to be encryptedpublic final String toString()
CaptureContexttoString in interface CaptureContexttoString in class Objectpublic String getFlexOrigin()
getFlexOrigin in interface CaptureContextpublic String getTokensPath()
getTokensPath in interface CaptureContextCopyright © 2022. All rights reserved.