Class EncryptionJwtSigningJwtCryptographyProperties
java.lang.Object
org.apereo.cas.configuration.model.core.util.EncryptionJwtSigningJwtCryptographyProperties
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EncryptionOptionalSigningOptionalJwtCryptographyProperties
@RequiresModule(name="cas-server-core-util",
automated=true)
public class EncryptionJwtSigningJwtCryptographyProperties
extends Object
implements Serializable
Common properties for all cryptography related configs.
A number of components in CAS accept signing and encryption keys.
In most scenarios if keys are not provided, CAS will auto-generate them.
The following instructions apply if you wish to manually and beforehand
create the signing and encryption keys.
- Since:
- 5.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlg()
The signing/encryption algorithm to use.Settings that deal with encryption of values.Settings that deal with signing of values.Control the cipher sequence of operations.boolean
Whether crypto operations are enabled.The signing/encryption algorithm to use.setEnabled
(boolean enabled) Whether crypto operations are enabled.setEncryption
(EncryptionJwtCryptoProperties encryption) Settings that deal with encryption of values.setSigning
(SigningJwtCryptoProperties signing) Settings that deal with signing of values.setStrategyType
(String strategyType) Control the cipher sequence of operations.
-
Constructor Details
-
EncryptionJwtSigningJwtCryptographyProperties
public EncryptionJwtSigningJwtCryptographyProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether crypto operations are enabled. -
getEncryption
Settings that deal with encryption of values. -
getSigning
Settings that deal with signing of values. -
getAlg
The signing/encryption algorithm to use. -
getStrategyType
Control the cipher sequence of operations. The accepted values are:ENCRYPT_AND_SIGN
: Encrypt the value first, and then sign.SIGN_AND_ENCRYPT
: Sign the value first, and then encrypt.
-
setEnabled
Whether crypto operations are enabled.- Returns:
this
.
-
setEncryption
public EncryptionJwtSigningJwtCryptographyProperties setEncryption(EncryptionJwtCryptoProperties encryption) Settings that deal with encryption of values.- Returns:
this
.
-
setSigning
Settings that deal with signing of values.- Returns:
this
.
-
setAlg
The signing/encryption algorithm to use.- Returns:
this
.
-
setStrategyType
Control the cipher sequence of operations. The accepted values are:ENCRYPT_AND_SIGN
: Encrypt the value first, and then sign.SIGN_AND_ENCRYPT
: Sign the value first, and then encrypt.
- Returns:
this
.
-