gpt4 book ai didi

org.apache.openejb.jee.oejb2.WebServiceSecurityType类的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 22:27:05 31 4
gpt4 key购买 nike

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

WebServiceSecurityType介绍

[英]Java class for web-service-securityType complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="web-service-securityType"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="security-realm-name" type="{http://www.w3.org/2001/XMLSchema}string"/> 
<element name="realm-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 
<element name="transport-guarantee" type="{http://tomee.apache.org/xml/ns/openejb-jar-2.2}transport-guaranteeType"/> 
<element name="auth-method" type="{http://tomee.apache.org/xml/ns/openejb-jar-2.2}auth-methodType"/> 
<element name="http-method" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType>

[中]web服务securityType复杂类型的Java类。
以下架构片段指定了该类中包含的预期内容。

<complexType name="web-service-securityType"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="security-realm-name" type="{http://www.w3.org/2001/XMLSchema}string"/> 
<element name="realm-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 
<element name="transport-guarantee" type="{http://tomee.apache.org/xml/ns/openejb-jar-2.2}transport-guaranteeType"/> 
<element name="auth-method" type="{http://tomee.apache.org/xml/ns/openejb-jar-2.2}auth-methodType"/> 
<element name="http-method" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType>

代码示例

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-jee

public WebServiceSecurityType(org.apache.openejb.jee.oejb2.WebServiceSecurityType s) {
  this.securityRealmName = s.getSecurityRealmName();
  this.realmName = s.getRealmName();
  this.transportGuarantee = s.getTransportGuarantee();
  this.authMethod = s.getAuthMethod();
  this.httpMethod = s.httpMethod;
}

代码示例来源:origin: org.apache.openejb/openejb-jee

/**
 * Create an instance of {@link WebServiceSecurityType }
 */
public WebServiceSecurityType createWebServiceSecurityType() {
  return new WebServiceSecurityType();
}

代码示例来源:origin: org.apache.geronimo.modules/geronimo-jaxws-ejb-builder

earContext.setHasSecurity(true);
String policyContextID = sessionName.toString();
Properties properties = wsSecurity.getProperties();
PermissionCollection uncheckedPermissions = new Permissions();
String transportGuarantee = wsSecurity.getTransportGuarantee().toString().trim();
boolean getProtected = properties.get("getProtected") == null? true: Boolean.valueOf((String) properties.get("getProtected"));
if (getProtected) {
boolean secured = wsSecurity.getAuthMethod() != null && AuthMethodType.NONE != (wsSecurity.getAuthMethod());// || wsSecurity.isSetAuthentication();
if (secured) {
  boolean getSecured = properties.get("getSecured") == null? true: Boolean.valueOf((String) properties.get("getSecured"));

代码示例来源:origin: org.apache.geronimo.modules/geronimo-jaxws-ejb-builder

private WebServiceBinding(WebServiceBindingType bt) {
  address = bt.getWebServiceAddress();
  virtualHosts = bt.getWebServiceVirtualHost();
  if (bt.getWebServiceSecurity() != null) {
    security = new WebServiceSecurityType();
    security.setAuthMethod(bt.getWebServiceSecurity().getAuthMethod());
    security.setRealmName(bt.getWebServiceSecurity().getRealmName());
    security.setSecurityRealmName(bt.getWebServiceSecurity().getSecurityRealmName());
    security.setTransportGuarantee(bt.getWebServiceSecurity().getTransportGuarantee());
  }
}

代码示例来源:origin: org.apache.tomee/openejb-jee

public WebServiceSecurityType(final org.apache.openejb.jee.oejb2.WebServiceSecurityType s) {
  this.securityRealmName = s.getSecurityRealmName();
  this.realmName = s.getRealmName();
  this.transportGuarantee = s.getTransportGuarantee();
  this.authMethod = s.getAuthMethod();
  this.httpMethod = s.httpMethod;
}

代码示例来源:origin: org.apache.tomee/openejb-jee

/**
 * Create an instance of {@link WebServiceSecurityType }
 */
public WebServiceSecurityType createWebServiceSecurityType() {
  return new WebServiceSecurityType();
}

代码示例来源:origin: org.apache.openejb/openejb-jee

public WebServiceSecurityType(final org.apache.openejb.jee.oejb2.WebServiceSecurityType s) {
  this.securityRealmName = s.getSecurityRealmName();
  this.realmName = s.getRealmName();
  this.transportGuarantee = s.getTransportGuarantee();
  this.authMethod = s.getAuthMethod();
  this.httpMethod = s.httpMethod;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-jee

/**
 * Create an instance of {@link WebServiceSecurityType }
 * 
 */
public WebServiceSecurityType createWebServiceSecurityType() {
  return new WebServiceSecurityType();
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

if (webServiceSecurityType.getRealmName() != null) {
  deployment.addProperty("webservice.security.realm", webServiceSecurityType.getRealmName());
if (webServiceSecurityType.getSecurityRealmName() != null) {
  deployment.addProperty("webservice.security.securityRealm", webServiceSecurityType.getSecurityRealmName());
if (webServiceSecurityType.getTransportGuarantee() != null) {
  deployment.addProperty("webservice.security.transportGarantee", webServiceSecurityType.getTransportGuarantee().value());
} else {
  deployment.addProperty("webservice.security.transportGarantee", "NONE");
if (webServiceSecurityType.getAuthMethod() != null) {
  deployment.addProperty("webservice.security.authMethod", webServiceSecurityType.getAuthMethod().value());
} else {
  deployment.addProperty("webservice.security.authMethod", "NONE");
deployment.getProperties().putAll(webServiceSecurityType.getProperties());

代码示例来源:origin: org.apache.tomee/openejb-core

if (webServiceSecurityType.getRealmName() != null) {
  deployment.addProperty("webservice.security.realm", webServiceSecurityType.getRealmName());
if (webServiceSecurityType.getSecurityRealmName() != null) {
  deployment.addProperty("webservice.security.securityRealm", webServiceSecurityType.getSecurityRealmName());
if (webServiceSecurityType.getTransportGuarantee() != null) {
  deployment.addProperty("webservice.security.transportGarantee", webServiceSecurityType.getTransportGuarantee().value());
} else {
  deployment.addProperty("webservice.security.transportGarantee", "NONE");
if (webServiceSecurityType.getAuthMethod() != null) {
  deployment.addProperty("webservice.security.authMethod", webServiceSecurityType.getAuthMethod().value());
} else {
  deployment.addProperty("webservice.security.authMethod", "NONE");
deployment.getProperties().putAll(webServiceSecurityType.getProperties());

代码示例来源:origin: org.apache.openejb/openejb-core

if (webServiceSecurityType.getRealmName() != null) {
  deployment.addProperty("webservice.security.realm", webServiceSecurityType.getRealmName());
if (webServiceSecurityType.getSecurityRealmName() != null) {
  deployment.addProperty("webservice.security.securityRealm", webServiceSecurityType.getSecurityRealmName());
if (webServiceSecurityType.getTransportGuarantee() != null) {
  deployment.addProperty("webservice.security.transportGarantee", webServiceSecurityType.getTransportGuarantee().value());
} else {
  deployment.addProperty("webservice.security.transportGarantee", "NONE");
if (webServiceSecurityType.getAuthMethod() != null) {
  deployment.addProperty("webservice.security.authMethod", webServiceSecurityType.getAuthMethod().value());
} else {
  deployment.addProperty("webservice.security.authMethod", "NONE");
deployment.getProperties().putAll(webServiceSecurityType.getProperties());

代码示例来源:origin: org.apache.geronimo.modules/geronimo-jaxws-ejb-builder

Properties properties = wsSecurity.getProperties();
    new AbstractNameQuery(null, Collections.singletonMap("name", wsSecurity.getSecurityRealmName().trim()),
    ConfigurationFactory.class.getName()));
String authMethod = wsSecurity.getAuthMethod().value();
ejbWebServiceGBean.setAttribute("authMethod", authMethod);
if (wsSecurity.getRealmName() != null) {
  ejbWebServiceGBean.setAttribute("realmName", wsSecurity.getRealmName().trim());

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com