Package org.apereo.cas.util.cipher
Class BaseBinaryCipherExecutor
- java.lang.Object
-
- org.apereo.cas.util.cipher.AbstractCipherExecutor<byte[],byte[]>
-
- org.apereo.cas.util.cipher.BaseBinaryCipherExecutor
-
- All Implemented Interfaces:
org.apereo.cas.util.crypto.CipherExecutor<byte[],byte[]>,org.apereo.cas.util.crypto.DecodableCipher<byte[],byte[]>,org.apereo.cas.util.crypto.EncodableCipher<byte[],byte[]>
- Direct Known Subclasses:
DefaultTicketCipherExecutor,WebflowConversationStateCipherExecutor
public abstract class BaseBinaryCipherExecutor extends AbstractCipherExecutor<byte[],byte[]>
This isBaseBinaryCipherExecutor.A implementation that is based on algorithms provided by the default platform's JCE. By default AES encryption is used.
- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcipherNameName of the cipher/component whose keys are generated here.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseBinaryCipherExecutor(java.lang.String encryptionSecretKey, java.lang.String signingSecretKey, int signingKeySize, int encryptionKeySize, java.lang.String cipherName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte[]decode(byte[] value, java.lang.Object[] parameters)byte[]encode(byte[] value, java.lang.Object[] parameters)protected abstract java.lang.StringgetEncryptionKeySetting()Gets encryption key setting.protected abstract java.lang.StringgetSigningKeySetting()Gets signing key setting.-
Methods inherited from class org.apereo.cas.util.cipher.AbstractCipherExecutor
configureSigningKey, configureSigningKeyFromPrivateKeyResource, extractPrivateKeyFromResource, extractPublicKeyFromResource, getSigningAlgorithmFor, isEnabled, sign, signWith, signWith, verifySignature
-
-
-
-
Method Detail
-
encode
public byte[] encode(byte[] value, java.lang.Object[] parameters)
-
decode
public byte[] decode(byte[] value, java.lang.Object[] parameters)
-
getEncryptionKeySetting
protected abstract java.lang.String getEncryptionKeySetting()
Gets encryption key setting.- Returns:
- the encryption key setting
-
getSigningKeySetting
protected abstract java.lang.String getSigningKeySetting()
Gets signing key setting.- Returns:
- the signing key setting
-
-