public static boolean isTypedIdOf(final String id, final Class<? extends UserProfile> clazz) {
        return id != null && clazz != null && id.startsWith(clazz.getName() + Pac4jConstants.TYPED_ID_SEPARATOR);
    }
Indicate if the user identifier matches this kind of profile.

@param id user identifier
@param clazz profile class
@return if the user identifier matches this kind of profile
pac4j-core/src/main/java/org/pac4j/core/profile/ProfileHelper.java