public abstract class AbstractWrapKeyEncryptionAlgorithm extends Object implements KeyEncryptionProvider
Modifier | Constructor and Description |
---|---|
protected |
AbstractWrapKeyEncryptionAlgorithm(Key key,
boolean wrap,
Set<String> supportedAlgorithms) |
protected |
AbstractWrapKeyEncryptionAlgorithm(Key key,
KeyAlgorithm jweAlgo,
boolean wrap,
Set<String> supportedAlgorithms) |
protected |
AbstractWrapKeyEncryptionAlgorithm(Key key,
KeyAlgorithm jweAlgo,
Set<String> supportedAlgorithms) |
protected |
AbstractWrapKeyEncryptionAlgorithm(Key key,
Set<String> supportedAlgorithms) |
Modifier and Type | Method and Description |
---|---|
protected String |
checkAlgorithm(String algo) |
protected void |
checkAlgorithms(JweHeaders headers) |
KeyAlgorithm |
getAlgorithm() |
protected AlgorithmParameterSpec |
getAlgorithmParameterSpec(JweHeaders headers) |
protected String |
getContentEncryptionAlgoJava(JweHeaders headers) |
byte[] |
getEncryptedContentEncryptionKey(JweHeaders headers,
byte[] cek) |
protected String |
getKeyEncryptionAlgoJava(JweHeaders headers) |
protected static final Logger LOG
protected AbstractWrapKeyEncryptionAlgorithm(Key key, Set<String> supportedAlgorithms)
protected AbstractWrapKeyEncryptionAlgorithm(Key key, boolean wrap, Set<String> supportedAlgorithms)
protected AbstractWrapKeyEncryptionAlgorithm(Key key, KeyAlgorithm jweAlgo, Set<String> supportedAlgorithms)
protected AbstractWrapKeyEncryptionAlgorithm(Key key, KeyAlgorithm jweAlgo, boolean wrap, Set<String> supportedAlgorithms)
public KeyAlgorithm getAlgorithm()
getAlgorithm
in interface KeyEncryptionProvider
public byte[] getEncryptedContentEncryptionKey(JweHeaders headers, byte[] cek)
getEncryptedContentEncryptionKey
in interface KeyEncryptionProvider
protected String getKeyEncryptionAlgoJava(JweHeaders headers)
protected String getContentEncryptionAlgoJava(JweHeaders headers)
protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweHeaders headers)
protected void checkAlgorithms(JweHeaders headers)
Apache CXF