private AlgorithmConstraints getContentEncryptionAlgorithmConstraints() {
        return allowedContentEncryptionAlgorithms.isEmpty() || allowedContentEncryptionAlgorithms.contains("*")
            ? AlgorithmConstraints.DISALLOW_NONE
            : new AlgorithmConstraints(AlgorithmConstraints.ConstraintType.PERMIT,
            allowedContentEncryptionAlgorithms.toArray(ArrayUtils.EMPTY_STRING_ARRAY));
    }
Encrypt object value.

@param payload the payload
@return the string
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/jwt/JsonWebTokenEncryptor.java