public List < OpenIDAttribute > createAttributeList ( String identifier ) { List < OpenIDAttribute > list = new LinkedList <> ( ) ; if ( identifier != null && identifier . matches ( "https://www.google.com/.*" ) ) { OpenIDAttribute email = new OpenIDAttribute ( "email" , "http://axschema.org/contact/email" ) ; OpenIDAttribute first = new OpenIDAttribute ( "firstname" , "http://axschema.org/namePerson/first" ) ; OpenIDAttribute last = new OpenIDAttribute ( "lastname" , "http://axschema.org/namePerson/last" ) ; email . setCount ( 1 ) ; email . setRequired ( true ) ; first . setRequired ( true ) ; last . setRequired ( true ) ; list . add ( email ) ; list . add ( first ) ; list . add ( last ) ; } return list ; }
A list of OpenID attributes to send in a request .