Change authentication providers at runtime

Hello, is there any way to change authentication providers at runtime on demand?

For example I initially log-in with OIDC provider and do some work, go to authentication change endpoint and login with SAML provider again while having only one provider at any given time ?

Spring framework + Spring Security