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()
JOSEpublic String getBase64Header() throws IOException
IOExceptionpublic 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
JWEExceptionpublic String encodeJwe(JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException
JWEExceptionpublic JWE verifyAndDecodeJwe(String jweStr) throws JWEException
JWEExceptionpublic JWE verifyAndDecodeJwe(String jweStr, JWEAlgorithmProvider algorithmProvider, JWEEncryptionProvider encryptionProvider) throws JWEException
JWEExceptionpublic JWE verifyAndDecodeJwe() throws JWEException
JWEExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.