@JsonIgnore
    public boolean isValid() {
        return StringUtils.isNotBlank(getId());
    }
Gets credential metadata. Will initialize if metadata is null.

@return current credential metadata
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/credential/AbstractCredential.java