Class BankIdAuthenticationToken

java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
se.swedenconnect.bankid.idp.authn.BankIdAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

public class BankIdAuthenticationToken extends org.springframework.security.authentication.AbstractAuthenticationToken
An Authentication object representing a successful BankID operation.
Author:
Martin Lindström, Felix Hellman
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>

    Nested classes/interfaces inherited from interface org.springframework.security.core.Authentication

    org.springframework.security.core.Authentication.Builder<B>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns null.
    Returns a CompletionData received from the BankID server.

    Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

    equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.security.core.Authentication

    toBuilder

    Methods inherited from interface Principal

    implies
  • Constructor Details

    • BankIdAuthenticationToken

      public BankIdAuthenticationToken(CollectResponse collectResponse)
      Constructor.
      Parameters:
      collectResponse - the CollectResponse received from the BankID server
  • Method Details

    • getCredentials

      public Object getCredentials()
      Returns null.
    • getPrincipal

      public Object getPrincipal()
      Returns a CompletionData received from the BankID server.