本文整理了Java中org.apache.ws.security.WSUsernameTokenPrincipal.<init>()
方法的一些代码示例,展示了WSUsernameTokenPrincipal.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSUsernameTokenPrincipal.<init>()
方法的具体详情如下:
包路径:org.apache.ws.security.WSUsernameTokenPrincipal
类名称:WSUsernameTokenPrincipal
方法名:<init>
[英]Create a WSUsernameTokenPrincipal with a WSUsernameToken username.
[中]使用WSUsernameToken用户名创建WSUsernameToken主体。
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
/**
* Create a WSUsernameTokenPrincipal from this UsernameToken object
*/
public Principal createPrincipal() {
WSUsernameTokenPrincipal principal =
new WSUsernameTokenPrincipal(getName(), isHashed());
principal.setNonce(getNonce());
principal.setPassword(getPassword());
principal.setCreatedTime(getCreated());
return principal;
}
代码示例来源:origin: org.apache.ws.security/wss4j
/**
* Create a WSUsernameTokenPrincipal from this UsernameToken object
*/
public Principal createPrincipal() {
WSUsernameTokenPrincipal principal =
new WSUsernameTokenPrincipal(getName(), isHashed());
principal.setNonce(getNonce());
principal.setPassword(getPassword());
principal.setCreatedTime(getCreated());
return principal;
}
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.sts.passive
OMElement rstr = null;
principal = new WSUsernameTokenPrincipal(request.getUserName(), false);
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.sts/org.wso2.carbon.identity.sts.passive
principal = new WSUsernameTokenPrincipal(request.getUserName(), false);
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.sts.passive
principal = new WSUsernameTokenPrincipal(request.getUserName(), false);
代码示例来源:origin: org.wso2.carbon.identity.inbound.auth.sts/org.wso2.carbon.identity.sts.passive
OMElement rstr = null;
principal = new WSUsernameTokenPrincipal(request.getUserName(), false);
代码示例来源:origin: org.apache.ws.security/wss4j
} else {
WSUsernameTokenPrincipal principal =
new WSUsernameTokenPrincipal(token.getName(), token.isHashed());
principal.setNonce(token.getNonce());
principal.setPassword(token.getPassword());
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
} else {
WSUsernameTokenPrincipal principal =
new WSUsernameTokenPrincipal(token.getName(), token.isHashed());
principal.setNonce(token.getNonce());
principal.setPassword(token.getPassword());
内容来源于网络,如有侵权,请联系作者删除!