Class AbstractAuthenticationFlow
java.lang.Object
ch.tocco.nice2.sso.impl.authenticationflows.AbstractAuthenticationFlow
- All Implemented Interfaces:
OpenIdAuthenticationFlow
- Direct Known Subclasses:
ClientSecretAuthenticationFlow
,PublicAuthenticationFlow
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(OpenIdMetadata providerMetadata, com.nimbusds.openid.connect.sdk.Nonce nonce, URI redirectUri, String clientId, com.nimbusds.oauth2.sdk.AuthorizationCode authorizationCode, @Nullable String clientSecret) protected abstract com.nimbusds.oauth2.sdk.TokenRequest
getAccessTokenRequest
(OpenIdMetadata providerMetadata, URI redirectUri, com.nimbusds.oauth2.sdk.AuthorizationCode authorizationCode, String clientId, @Nullable String clientSecret) protected abstract void
validateParams
(OpenIdMetadata providerMetadata, com.nimbusds.openid.connect.sdk.Nonce nonce, URI redirectUri, String clientId, com.nimbusds.oauth2.sdk.AuthorizationCode authorizationCode, @Nullable String clientSecret) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.sso.impl.authenticationflows.OpenIdAuthenticationFlow
getName
-
Constructor Details
-
AbstractAuthenticationFlow
public AbstractAuthenticationFlow()
-
-
Method Details
-
authenticate
public UserInfoBean authenticate(OpenIdMetadata providerMetadata, com.nimbusds.openid.connect.sdk.Nonce nonce, URI redirectUri, String clientId, com.nimbusds.oauth2.sdk.AuthorizationCode authorizationCode, @Nullable @Nullable String clientSecret) throws OpenIdAuthenticationException - Specified by:
authenticate
in interfaceOpenIdAuthenticationFlow
- Throws:
OpenIdAuthenticationException
-
validateParams
protected abstract void validateParams(OpenIdMetadata providerMetadata, com.nimbusds.openid.connect.sdk.Nonce nonce, URI redirectUri, String clientId, com.nimbusds.oauth2.sdk.AuthorizationCode authorizationCode, @Nullable @Nullable String clientSecret) throws OpenIdAuthenticationException - Throws:
OpenIdAuthenticationException
-
getAccessTokenRequest
protected abstract com.nimbusds.oauth2.sdk.TokenRequest getAccessTokenRequest(OpenIdMetadata providerMetadata, URI redirectUri, com.nimbusds.oauth2.sdk.AuthorizationCode authorizationCode, String clientId, @Nullable @Nullable String clientSecret)
-