@ SuppressWarnings ( "unchecked" ) /* See constructor comments. */ public void setAuthorization ( Object soapClient , AdsSession adsSession ) throws AuthenticationException { final String authorizationHeader = authorizationHeaderProvider . getAuthorizationHeader ( adsSession , soapClientHandler . getEndpointAddress ( soapClient ) ) ; soapClientHandler . putAllHttpHeaders ( soapClient , new HashMap < String , String > ( ) { { put ( "Authorization" , authorizationHeader ) ; } } ) ; }
Sets the authorization header created from the session on the soap client .