public class JsonWebEncryption extends JsonWebStructure
| Modifier and Type | Field and Description |
|---|---|
static short |
COMPACT_SERIALIZATION_PARTS |
doKeyValidation, headers, rawCompactSerialization| Constructor and Description |
|---|
JsonWebEncryption() |
checkCrit, checkNotEmptyPart, fromCompactSerialization, getAlgorithmConstraints, getAlgorithmHeaderValue, getContentTypeHeaderValue, getEncodedHeader, getHeader, getHeader, getHeaders, getIntegrity, getKey, getKeyIdHeaderValue, getProviderCtx, getX509CertSha1ThumbprintHeaderValue, getX509CertSha256ThumbprintHeaderValue, isDoKeyValidation, onNewKey, setAlgorithmConstraints, setAlgorithmHeaderValue, setCompactSerialization, setContentTypeHeaderValue, setCriticalHeaderNames, setDoKeyValidation, setEncodedHeader, setHeader, setIntegrity, setKey, setKeyIdHeaderValue, setKnownCriticalHeaders, setProviderContext, setX509CertSha1ThumbprintHeaderValue, setX509CertSha1ThumbprintHeaderValue, setX509CertSha256ThumbprintHeaderValue, setX509CertSha256ThumbprintHeaderValue, toStringpublic static final short COMPACT_SERIALIZATION_PARTS
public void setPlainTextCharEncoding(String plaintextCharEncoding)
public void setPlaintext(byte[] plaintext)
public void setPlaintext(String plaintext)
public String getPlaintextString() throws JoseException
JoseExceptionpublic byte[] getPlaintextBytes()
throws JoseException
JoseExceptionpublic String getPayload() throws JoseException
getPayload in class JsonWebStructureJoseExceptionpublic void setPayload(String payload)
setPayload in class JsonWebStructurepublic void setEncryptionMethodHeaderParameter(String enc)
public String getEncryptionMethodHeaderParameter()
public void setCompressionAlgorithmHeaderParameter(String zip)
public String getCompressionAlgorithmHeaderParameter()
public void enableDefaultCompression()
public void setContentEncryptionAlgorithmConstraints(AlgorithmConstraints contentEncryptionAlgorithmConstraints)
public ContentEncryptionAlgorithm getContentEncryptionAlgorithm() throws InvalidAlgorithmException
InvalidAlgorithmExceptionpublic KeyManagementAlgorithm getKeyManagementModeAlgorithm() throws InvalidAlgorithmException
InvalidAlgorithmExceptionpublic KeyManagementAlgorithm getAlgorithmNoConstraintCheck() throws InvalidAlgorithmException
getAlgorithmNoConstraintCheck in class JsonWebStructureInvalidAlgorithmExceptionpublic KeyManagementAlgorithm getAlgorithm() throws InvalidAlgorithmException
getAlgorithm in class JsonWebStructureInvalidAlgorithmExceptionprotected void setCompactSerializationParts(String[] parts) throws JoseException
setCompactSerializationParts in class JsonWebStructureJoseExceptionpublic byte[] getEncryptedKey()
public String getCompactSerialization() throws JoseException
getCompactSerialization in class JsonWebStructureJoseExceptionpublic byte[] getContentEncryptionKey()
public void setContentEncryptionKey(byte[] contentEncryptionKey)
public void setEncodedContentEncryptionKey(String encodedContentEncryptionKey)
public byte[] getIv()
public void setIv(byte[] iv)
public void setEncodedIv(String encodedIv)
Copyright © 2017. All rights reserved.