@Override
    public boolean canHandleToken(final ReceivedToken delegateTarget) {
        val token = delegateTarget.getToken();
        if (token instanceof final Element tokenElement) {
            val namespace = tokenElement.getNamespaceURI();
            val localname = tokenElement.getLocalName();
            return WSS4JConstants.SIG_NS.equals(namespace) && WSS4JConstants.X509_DATA_LN.equals(localname);
        }
        return false;
    }
This is {@link X509TokenDelegationHandler}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-ws-sts-api/src/main/java/org/apereo/cas/support/x509/X509TokenDelegationHandler.java