private AlgorithmConstraints getAlgorithmConstraints() {
        return allowedAlgorithms.isEmpty() || allowedAlgorithms.contains("*")
            ? AlgorithmConstraints.DISALLOW_NONE
            : new AlgorithmConstraints(AlgorithmConstraints.ConstraintType.PERMIT,
            allowedAlgorithms.toArray(ArrayUtils.EMPTY_STRING_ARRAY));
    }
Sign claims.

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