protected void configureTwitterClient ( final Collection < BaseClient > properties ) { val twitter = pac4jProperties . getTwitter ( ) ; if ( StringUtils . isNotBlank ( twitter . getId ( ) ) && StringUtils . isNotBlank ( twitter . getSecret ( ) ) ) { val client = new TwitterClient ( twitter . getId ( ) , twitter . getSecret ( ) , twitter . isIncludeEmail ( ) ) ; configureClient ( client , twitter ) ; LOGGER . debug ( "Created client [{}] with identifier [{}]" , client . getName ( ) , client . getKey ( ) ) ; properties . add ( client ) ; } }
Configure twitter client .