- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.openejb.jee.oejb2.WebServiceSecurityType
类的一些代码示例,展示了WebServiceSecurityType
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceSecurityType
类的具体详情如下:
包路径:org.apache.openejb.jee.oejb2.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());
本文整理了Java中org.apache.openejb.jee.oejb2.WebServiceSecurityType.getSecurityRealmName()方法的一些代码示例,展示了Web
本文整理了Java中org.apache.openejb.jee.oejb2.WebServiceSecurityType.()方法的一些代码示例,展示了WebServiceSecurityType.
本文整理了Java中org.apache.openejb.jee.oejb2.WebServiceSecurityType.getRealmName()方法的一些代码示例,展示了WebServiceS
本文整理了Java中org.apache.openejb.jee.oejb2.WebServiceSecurityType.getProperties()方法的一些代码示例,展示了WebService
本文整理了Java中org.apache.openejb.jee.oejb2.WebServiceSecurityType.getTransportGuarantee()方法的一些代码示例,展示了We
本文整理了Java中org.apache.openejb.jee.oejb2.WebServiceSecurityType.getAuthMethod()方法的一些代码示例,展示了WebService
我是一名优秀的程序员,十分优秀!