class X509Credentials extends Credentials {

    @Serial
    private static final long serialVersionUID = 2733744949087200768L;

    private final X509Certificate certificate;

    /**
     * <p>Constructor for X509Credentials.</p>
     *
     * @param certificate a {@link X509Certificate} object
     */
    public X509Credentials(final X509Certificate certificate) {
        this.certificate = certificate;
    }

    /** {@inheritDoc} */
    @Override
    public String toString() {<FILL_FUNCTION_BODY>}
}

        return "X509Credentials(certificate.serialNumber=" + (certificate != null ? certificate.getSerialNumber() : null) + ")";
    
<methods>public non-sealed void <init>() ,public boolean isForAuthentication() <variables>protected org.pac4j.core.logout.LogoutType logoutType,private static final long serialVersionUID,protected java.lang.String source,private org.pac4j.core.profile.UserProfile userProfile