public class JsonWebEncryption extends JsonWebStructure
Modifier and Type | Field and Description |
---|---|
static short |
COMPACT_SERIALIZATION_PARTS |
doKeyValidation, headers, rawCompactSerialization
Constructor and Description |
---|
JsonWebEncryption() |
checkNotEmptyPart, fromCompactSerialization, getAlgorithmConstraints, getAlgorithmHeaderValue, getEncodedHeader, getHeader, getHeader, getHeaders, getIntegrity, getKey, getKeyIdHeaderValue, getX509CertSha1ThumbprintHeaderValue, getX509CertSha256ThumbprintHeaderValue, isDoKeyValidation, onNewKey, setAlgorithmConstraints, setAlgorithmHeaderValue, setCompactSerialization, setDoKeyValidation, setEncodedHeader, setHeader, setIntegrity, setKey, setKeyIdHeaderValue, setX509CertSha1ThumbprintHeaderValue, setX509CertSha1ThumbprintHeaderValue, setX509CertSha256ThumbprintHeaderValue, setX509CertSha256ThumbprintHeaderValue, toString
public 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
JoseException
public byte[] getPlaintextBytes() throws JoseException
JoseException
public String getPayload() throws JoseException
getPayload
in class JsonWebStructure
JoseException
public void setPayload(String payload)
setPayload
in class JsonWebStructure
public 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
InvalidAlgorithmException
public KeyManagementAlgorithm getKeyManagementModeAlgorithm() throws InvalidAlgorithmException
InvalidAlgorithmException
public KeyManagementAlgorithm getAlgorithm() throws InvalidAlgorithmException
getAlgorithm
in class JsonWebStructure
InvalidAlgorithmException
protected void setCompactSerializationParts(String[] parts) throws JoseException
setCompactSerializationParts
in class JsonWebStructure
JoseException
public byte[] getEncryptedKey()
public String getCompactSerialization() throws JoseException
getCompactSerialization
in class JsonWebStructure
JoseException
public 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 © 2015. All rights reserved.