/** * Created by the <tt>OpenIDAuthenticationProvider</tt> on successful authentication. * * @param principal usually the <tt>UserDetails</tt> returned by the configured * <tt>UserDetailsService</tt> used by the <tt>OpenIDAuthenticationProvider</tt>. * */ public OpenIDAuthenticationToken(Object principal, Collection<? extends GrantedAuthority> authorities, String identityUrl, List<OpenIDAttribute> attributes) { super(authorities); this.principal = principal; this.status = OpenIDAuthenticationStatus.SUCCESS; this.identityUrl = identityUrl; this.message = null; this.attributes = attributes; setAuthenticated(true); }
public OpenIDAuthenticationToken(OpenIDAuthenticationStatus status, String identityUrl, String message, List<OpenIDAttribute> attributes) { super(new ArrayList<>(0)); this.principal = identityUrl; this.status = status; this.identityUrl = identityUrl; this.message = message; this.attributes = attributes; setAuthenticated(false); }
/** * Created by the <tt>OpenIDAuthenticationProvider</tt> on successful authentication. * * @param principal usually the <tt>UserDetails</tt> returned by the configured * <tt>UserDetailsService</tt> used by the <tt>OpenIDAuthenticationProvider</tt>. * */ public OpenIDAuthenticationToken(Object principal, Collection<? extends GrantedAuthority> authorities, String identityUrl, List<OpenIDAttribute> attributes) { super(authorities); this.principal = principal; this.status = OpenIDAuthenticationStatus.SUCCESS; this.identityUrl = identityUrl; this.message = null; this.attributes = attributes; setAuthenticated(true); }
public OpenIDAuthenticationToken(OpenIDAuthenticationStatus status, String identityUrl, String message, List<OpenIDAttribute> attributes) { super(new ArrayList<>(0)); this.principal = identityUrl; this.status = status; this.identityUrl = identityUrl; this.message = message; this.attributes = attributes; setAuthenticated(false); }