static String decodeAttribute(final String s) {
        try {
            if (isAttributeNameEncoded(s)) {
                return new String(Hex.decodeHex(s.substring(1)), StandardCharsets.UTF_8);
            }
        } catch (final Exception e) {
            LOGGER.trace("Unable to decode attribute [{}]: [{}]", s, e.getMessage());
        }
        return s;
    }
Decode attribute string.

@param s the s
@return the string
api/cas-server-core-api-services/src/main/java/org/apereo/cas/authentication/ProtocolAttributeEncoder.java