Class JweObject
- java.lang.Object
-
- com.mastercard.developer.encryption.jwe.JweObject
-
public class JweObject extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecrypt(JweConfig config)static Stringencrypt(JweConfig config, String payload, JweHeader header)StringgetAuthTag()StringgetCipherText()JweHeadergetHeader()StringgetIv()StringgetRawHeader()static JweObjectparse(String encryptedPayload, JsonEngine jsonEngine)
-
-
-
Method Detail
-
decrypt
public String decrypt(JweConfig config) throws EncryptionException, GeneralSecurityException
-
encrypt
public static String encrypt(JweConfig config, String payload, JweHeader header) throws EncryptionException, GeneralSecurityException
-
parse
public static JweObject parse(String encryptedPayload, JsonEngine jsonEngine)
-
getHeader
public JweHeader getHeader()
-
getRawHeader
public String getRawHeader()
-
getIv
public String getIv()
-
getCipherText
public String getCipherText()
-
getAuthTag
public String getAuthTag()
-
-