/**
* Prepare client call
* Uses username/password if set in the bean definition. Otherwise, use the given credentials
* Also prepares the securityConfigResource.
*/
private void configureParameters(UsernamePasswordCredential credential) {
if (this._sConfigResource == null){
this._sConfigResource = new ServletContextResource(servletContext, this.configFilePath);
}
if (StringUtils.isNotBlank(this._wsUsername)) {
// got username/pw from bean definition
this._username = this._wsUsername;
this._password = this._wsPass;
} else {
// get username/pw from credentials.
this._username = credential.getUsername();
this._password = credential.getPassword();
}
// ensure that username is lowercase
if (this._username != null) {
this._username = this._username.trim().toLowerCase();
}
}
ExampleWsClient.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:jasig-cas-examples-robertoschwald
作者:
评论列表
文章目录