Class BankIdAuthenticationProvider
java.lang.Object
se.swedenconnect.spring.saml.idp.authentication.provider.AbstractUserAuthenticationProvider
se.swedenconnect.spring.saml.idp.authentication.provider.external.AbstractUserRedirectAuthenticationProvider
se.swedenconnect.bankid.idp.authn.BankIdAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
,UserRedirectAuthenticationProvider
,UserAuthenticationProvider
The BankID
AuthenticationProvider
.- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the authentication context URI that should be used for the operation.getName()
void
Assigns the provider name.boolean
supportsUserAuthenticationToken
(org.springframework.security.core.Authentication authentication) SupportsBankIdAuthenticationToken
.Methods inherited from class se.swedenconnect.spring.saml.idp.authentication.provider.external.AbstractUserRedirectAuthenticationProvider
authenticate, getAuthnPath, getResumeAuthnPath, getTokenRepository, setTokenRepository
Methods inherited from class se.swedenconnect.spring.saml.idp.authentication.provider.AbstractUserAuthenticationProvider
applySso, authenticateUser, filterRequestedAuthnContextUris, ssoVoters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.swedenconnect.spring.saml.idp.authentication.provider.UserAuthenticationProvider
authenticateUser
Methods inherited from interface se.swedenconnect.spring.saml.idp.authentication.provider.external.UserRedirectAuthenticationProvider
authenticate, supports
-
Constructor Details
-
BankIdAuthenticationProvider
public BankIdAuthenticationProvider(String authnPath, String resumeAuthnPath, List<String> supportedAuthnContextUris, List<String> entityCategories) Constructor.- Parameters:
authnPath
- the path to where we redirect the user for authenticationresumeAuthnPath
- the path that the authentication process uses to redirect the user back after a completed authenticationsupportedAuthnContextUris
- the supported LoA:sentityCategories
- declared/supported entity categories
-
-
Method Details
-
resumeAuthentication
public Saml2UserAuthentication resumeAuthentication(ResumedAuthenticationToken token) throws Saml2ErrorStatusException - Throws:
Saml2ErrorStatusException
-
supportsUserAuthenticationToken
public boolean supportsUserAuthenticationToken(org.springframework.security.core.Authentication authentication) SupportsBankIdAuthenticationToken
. -
setName
Assigns the provider name.- Parameters:
name
- the provider name
-
getName
-
getSupportedAuthnContextUris
-
getAuthnContextUri
Returns the authentication context URI that should be used for the operation.The BankID IdP should only be configured with one URI and the default implementation uses the first URI in the list of supported URI:s.
- Parameters:
token
- the BankID authentication token- Returns:
- the URI
-
getEntityCategories
-