private String typePrincipalId(final String id, final UserProfile profile) {
        return isTypedIdUsed
            ? profile.getClass().getName() + Pac4jConstants.TYPED_ID_SEPARATOR + id
            : id;
    }
Determine principal id from profile.

@param profile the profile
@param client  the client
@return the id
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/handler/support/BaseDelegatedClientAuthenticationHandler.java