public class JWE extends Object
Constructor and Description |
---|
JWE() |
Modifier and Type | Method and Description |
---|---|
JWE |
content(byte[] content) |
static byte[] |
decrypt(String password,
String saltString,
String encodedJwe) |
static String |
decryptUTF8(String password,
String saltString,
String encodedJwe) |
String |
encodeJwe() |
static String |
encrypt(String password,
String saltString,
byte[] payload) |
static String |
encryptUTF8(String password,
String saltString,
String payload) |
byte[] |
getAuthenticationTag() |
String |
getBase64Header() |
byte[] |
getContent() |
byte[] |
getEncryptedContent() |
byte[] |
getInitializationVector() |
JWEKeyStorage |
getKeyStorage() |
JWE |
header(JWEHeader header) |
void |
setEncryptedContentInfo(byte[] initializationVector,
byte[] encryptedContent,
byte[] authenticationTag) |
JWE |
verifyAndDecodeJwe(String jweStr) |
public String getBase64Header() throws IOException
IOException
public JWEKeyStorage getKeyStorage()
public byte[] getInitializationVector()
public JWE content(byte[] content)
public byte[] getContent()
public byte[] getEncryptedContent()
public byte[] getAuthenticationTag()
public void setEncryptedContentInfo(byte[] initializationVector, byte[] encryptedContent, byte[] authenticationTag)
public String encodeJwe() throws JWEException
JWEException
public JWE verifyAndDecodeJwe(String jweStr) throws JWEException
JWEException
Copyright © 2019 JBoss by Red Hat. All rights reserved.