Class OpenIDAuthenticationToken

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer

    @Deprecated
    public class OpenIDAuthenticationToken
    extends org.springframework.security.authentication.AbstractAuthenticationToken
    Deprecated.
    The OpenID 1.0 and 2.0 protocols have been deprecated and users are encouraged to migrate to OpenID Connect, which is supported by spring-security-oauth2.
    OpenID Authentication Token
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenIDAuthenticationToken​(java.lang.Object principal, java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, java.lang.String identityUrl, java.util.List<OpenIDAttribute> attributes)
      Deprecated.
      Created by the OpenIDAuthenticationProvider on successful authentication.
      OpenIDAuthenticationToken​(OpenIDAuthenticationStatus status, java.lang.String identityUrl, java.lang.String message, java.util.List<OpenIDAttribute> attributes)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.List<OpenIDAttribute> getAttributes()
      Deprecated.
       
      java.lang.Object getCredentials()
      Deprecated.
      Returns 'null' always, as no credentials are processed by the OpenID provider.
      java.lang.String getIdentityUrl()
      Deprecated.
       
      java.lang.String getMessage()
      Deprecated.
       
      java.lang.Object getPrincipal()
      Deprecated.
      Returns the principal value.
      OpenIDAuthenticationStatus getStatus()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken

        equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        implies
    • Constructor Detail

      • OpenIDAuthenticationToken

        public OpenIDAuthenticationToken​(OpenIDAuthenticationStatus status,
                                         java.lang.String identityUrl,
                                         java.lang.String message,
                                         java.util.List<OpenIDAttribute> attributes)
        Deprecated.
      • OpenIDAuthenticationToken

        public OpenIDAuthenticationToken​(java.lang.Object principal,
                                         java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
                                         java.lang.String identityUrl,
                                         java.util.List<OpenIDAttribute> attributes)
        Deprecated.
        Created by the OpenIDAuthenticationProvider on successful authentication.
        Parameters:
        principal - usually the UserDetails returned by the configured UserDetailsService used by the OpenIDAuthenticationProvider.
    • Method Detail

      • getCredentials

        public java.lang.Object getCredentials()
        Deprecated.
        Returns 'null' always, as no credentials are processed by the OpenID provider.
        See Also:
        Authentication.getCredentials()
      • getIdentityUrl

        public java.lang.String getIdentityUrl()
        Deprecated.
      • getMessage

        public java.lang.String getMessage()
        Deprecated.
      • getPrincipal

        public java.lang.Object getPrincipal()
        Deprecated.
        Returns the principal value.
        See Also:
        Authentication.getPrincipal()
      • getAttributes

        public java.util.List<OpenIDAttribute> getAttributes()
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Specified by:
        toString in interface java.security.Principal
        Overrides:
        toString in class org.springframework.security.authentication.AbstractAuthenticationToken