类org.apache.http.impl.auth.SPNegoScheme源码实例Demo

下面列出了怎么用org.apache.http.impl.auth.SPNegoScheme的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: pentaho-kettle   文件: SessionConfigurator.java
private Header spnegoAuthenticate( boolean stripPort, URI uri ) throws Exception {
  SPNegoSchemeFactory spNegoSchemeFactory = new SPNegoSchemeFactory( stripPort );
  // using newInstance method instead of create method to be compatible httpclient library from 4.2 to 4.5
  // the create method was introduced at version 4.3
  SPNegoScheme spNegoScheme = (SPNegoScheme) spNegoSchemeFactory.newInstance( null );
  spNegoScheme.processChallenge( AUTHENTICATE_HEADER );
  return spNegoScheme.authenticate( credentials, new HttpGet( "" ), getContext( uri ) );
}
 
 类所在包
 类方法
 同包方法