org.apache.ws.security.WSUsernameTokenPrincipal.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中org.apache.ws.security.WSUsernameTokenPrincipal.<init>()方法的一些代码示例,展示了WSUsernameTokenPrincipal.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSUsernameTokenPrincipal.<init>()方法的具体详情如下:
包路径:org.apache.ws.security.WSUsernameTokenPrincipal
类名称:WSUsernameTokenPrincipal
方法名:<init>

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());

相关文章