public class JWE extends Object implements JOSE
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() |
String |
encodeJwe(JWEAlgorithmProvider algorithmProvider,
JWEEncryptionProvider encryptionProvider) |
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() |
JOSEHeader |
getHeader()
Returns the JWT header.
|
byte[] |
getInitializationVector() |
JWEKeyStorage |
getKeyStorage() |
JWE |
header(JWEHeader header) |
void |
setEncryptedContentInfo(byte[] initializationVector,
byte[] encryptedContent,
byte[] authenticationTag) |
JWE |
verifyAndDecodeJwe() |
JWE |
verifyAndDecodeJwe(String jweStr) |
JWE |
verifyAndDecodeJwe(String jweStr,
JWEAlgorithmProvider algorithmProvider,
JWEEncryptionProvider encryptionProvider) |
public JWE()
public JWE(String jwt)
public JOSEHeader getHeader()
JOSE
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 String encodeJwe(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException
JWEException
public JWE verifyAndDecodeJwe(String jweStr) throws JWEException
JWEException
public JWE verifyAndDecodeJwe(String jweStr, JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException
JWEException
public JWE verifyAndDecodeJwe() throws JWEException
JWEException
Copyright © 2021 JBoss by Red Hat. All rights reserved.