/** * Create an oauth2 client auth handler * * @param authProvider the auth provider to use * @return the auth handler */ static AuthHandler create(AuthProvider authProvider) { return AuthHandler.newInstance(new ClientBasicAuthHandlerImpl(authProvider)); } }
/** * Create an oauth2 client auth handler * * @param authProvider the auth provider to use * @return the auth handler */ static AuthHandler create(AuthProvider authProvider) { return AuthHandler.newInstance(new ClientAssertionAuthHandlerImpl(authProvider)); } }
/** * Create an oauth2 client auth handler based on request parameters. * * @param authProvider the auth provider to use * @return the auth handler */ static AuthHandler create(AuthProvider authProvider) { return AuthHandler.newInstance(new ClientCredentialsAuthHandlerImpl(authProvider)); } }
/** * Create OAuth 2.0 client authentication handler for social/oauth2 authentication * * @param authProvider the auth provider to use * @return the auth handler */ static AuthHandler create(AuthProvider authProvider, IdentityProviderManager identityProviderManager) { return AuthHandler.newInstance(new OAuth2ClientAuthHandlerImpl(authProvider, identityProviderManager)); } }
/** * Create an oauth2 client auth handler * * @param authProvider the auth provider to use * @return the auth handler */ static AuthHandler create(AuthProvider authProvider) { return AuthHandler.newInstance(new ClientAssertionAuthHandlerImpl(authProvider)); } }
/** * Create an oauth2 client auth handler * * @param authProvider the auth provider to use * @return the auth handler */ static AuthHandler create(AuthProvider authProvider) { return AuthHandler.newInstance(new ClientBasicAuthHandlerImpl(authProvider)); } }
/** * Create OAuth 2.0 client authentication handler for social/oauth2 authentication * * @param authProvider the auth provider to use * @return the auth handler */ static AuthHandler create(AuthProvider authProvider, IdentityProviderManager identityProviderManager) { return AuthHandler.newInstance(new OAuth2ClientAuthHandlerImpl(authProvider, identityProviderManager)); } }
/** * Create an oauth2 client auth handler based on request parameters. * * @param authProvider the auth provider to use * @return the auth handler */ static AuthHandler create(AuthProvider authProvider) { return AuthHandler.newInstance(new ClientCredentialsAuthHandlerImpl(authProvider)); } }
static AuthHandler create(AuthProvider authProvider, String loginRedirectURL) { return AuthHandler.newInstance(new RedirectAuthHandlerImpl(authProvider, loginRedirectURL, DEFAULT_RETURN_URL_PARAM)); }
static AuthHandler create(AuthProvider authProvider, String loginRedirectURL) { return AuthHandler.newInstance(new RedirectAuthHandlerImpl(authProvider, loginRedirectURL, DEFAULT_RETURN_URL_PARAM)); }