当前位置: 首页>>代码示例>>Java>>正文


Java SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME属性代码示例

本文整理汇总了Java中org.opensaml.saml2.metadata.SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME属性的典型用法代码示例。如果您正苦于以下问题:Java SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME属性的具体用法?Java SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME怎么用?Java SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.opensaml.saml2.metadata.SingleLogoutService的用法示例。


在下文中一共展示了SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testSingleElementMarshall

/** {@inheritDoc} */
public void testSingleElementMarshall() {
    QName qname = new QName(SAMLConstants.SAML20MD_NS, SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME);
    SingleLogoutService service = (SingleLogoutService) buildXMLObject(qname);
    
    service.setBinding(expectedBinding);
    service.setLocation(expectedLocation);

    assertEquals(expectedDOM, service);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:10,代码来源:SingleLogoutServiceTest.java

示例2: testSingleElementOptionalAttributesMarshall

/** {@inheritDoc} */
public void testSingleElementOptionalAttributesMarshall() {
    QName qname = new QName(SAMLConstants.SAML20MD_NS, SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME);
    SingleLogoutService service = (SingleLogoutService) buildXMLObject(qname);
    
    service.setBinding(expectedBinding);
    service.setLocation(expectedLocation);
    service.setResponseLocation(expectedResponseLocation);

    assertEquals(expectedOptionalAttributesDOM, service);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:11,代码来源:SingleLogoutServiceTest.java

示例3: SingleLogoutServiceUnmarshaller

/**
 * Constructor
 */
public SingleLogoutServiceUnmarshaller() {
    super(SAMLConstants.SAML20MD_NS, SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:6,代码来源:SingleLogoutServiceUnmarshaller.java

示例4: SingleLogoutServiceMarshaller

/**
 * Constructor
 */
public SingleLogoutServiceMarshaller() {
    super(SAMLConstants.SAML20MD_NS, SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:6,代码来源:SingleLogoutServiceMarshaller.java

示例5: SingleLogoutServiceSchemaTest

/** Constructor */
public SingleLogoutServiceSchemaTest() {
    targetQName = new QName(SAMLConstants.SAML20MD_NS, SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    validator = new SingleLogoutServiceSchemaValidator();
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:6,代码来源:SingleLogoutServiceSchemaTest.java

示例6: testChildElementsMarshall

/** {@inheritDoc} */
public void testChildElementsMarshall() {
    QName qname = new QName(SAMLConstants.SAML20MD_NS, SPSSODescriptor.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    SPSSODescriptor descriptor = (SPSSODescriptor) buildXMLObject(qname);

    QName extensionsQName = new QName(SAMLConstants.SAML20MD_NS, Extensions.LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    descriptor.setExtensions((Extensions) buildXMLObject(extensionsQName));

    QName orgQName = new QName(SAMLConstants.SAML20MD_NS, Organization.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    descriptor.setOrganization((Organization) buildXMLObject(orgQName));

    QName contactQName = new QName(SAMLConstants.SAML20MD_NS, ContactPerson.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 2; i++) {
        descriptor.getContactPersons().add((ContactPerson) buildXMLObject(contactQName));
    }

    QName artResQName = new QName(SAMLConstants.SAML20MD_NS, ArtifactResolutionService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    descriptor.getArtifactResolutionServices().add((ArtifactResolutionService) buildXMLObject(artResQName));

    QName sloQName = new QName(SAMLConstants.SAML20MD_NS, SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 2; i++) {
        descriptor.getSingleLogoutServices().add((SingleLogoutService) buildXMLObject(sloQName));
    }

    QName mngNameIDQName = new QName(SAMLConstants.SAML20MD_NS, ManageNameIDService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 4; i++) {
        descriptor.getManageNameIDServices().add((ManageNameIDService) buildXMLObject(mngNameIDQName));
    }

    QName nameIDFormatQName = new QName(SAMLConstants.SAML20MD_NS, NameIDFormat.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    descriptor.getNameIDFormats().add((NameIDFormat) buildXMLObject(nameIDFormatQName));

    QName assertConsumeQName = new QName(SAMLConstants.SAML20MD_NS,
            AssertionConsumerService.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 2; i++) {
        descriptor.getAssertionConsumerServices()
                .add((AssertionConsumerService) buildXMLObject(assertConsumeQName));
    }

    QName attribConsumeQName = new QName(SAMLConstants.SAML20MD_NS,
            AttributeConsumingService.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
    descriptor.getAttributeConsumingServices().add((AttributeConsumingService) buildXMLObject(attribConsumeQName));

    assertEquals(expectedChildElementsDOM, descriptor);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:53,代码来源:SPSSODescriptorTest.java

示例7: testChildElementsMarshall

/** {@inheritDoc} */
public void testChildElementsMarshall() {
    QName qname = new QName(SAMLConstants.SAML20MD_NS, IDPSSODescriptor.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
    IDPSSODescriptor descriptor = (IDPSSODescriptor) buildXMLObject(qname);

    QName extensionsQName = new QName(SAMLConstants.SAML20MD_NS, Extensions.LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    descriptor.setExtensions((Extensions) buildXMLObject(extensionsQName));

    QName orgQName = new QName(SAMLConstants.SAML20MD_NS, Organization.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
    descriptor.setOrganization((Organization) buildXMLObject(orgQName));

    QName contactQName = new QName(SAMLConstants.SAML20MD_NS, ContactPerson.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 2; i++) {
        descriptor.getContactPersons().add((ContactPerson) buildXMLObject(contactQName));
    }

    QName artResQName = new QName(SAMLConstants.SAML20MD_NS, ArtifactResolutionService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    descriptor.getArtifactResolutionServices().add((ArtifactResolutionService) buildXMLObject(artResQName));

    QName sloQName = new QName(SAMLConstants.SAML20MD_NS, SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 2; i++) {
        descriptor.getSingleLogoutServices().add((SingleLogoutService) buildXMLObject(sloQName));
    }

    QName mngNameIDQName = new QName(SAMLConstants.SAML20MD_NS, ManageNameIDService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 4; i++) {
        descriptor.getManageNameIDServices().add((ManageNameIDService) buildXMLObject(mngNameIDQName));
    }

    QName nameIDFormatQName = new QName(SAMLConstants.SAML20MD_NS, NameIDFormat.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    descriptor.getNameIDFormats().add((NameIDFormat) buildXMLObject(nameIDFormatQName));

    QName ssoQName = new QName(SAMLConstants.SAML20MD_NS, SingleSignOnService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 3; i++) {
        descriptor.getSingleSignOnServices().add((SingleSignOnService) buildXMLObject(ssoQName));
    }

    QName nameIDMapQName = new QName(SAMLConstants.SAML20MD_NS, NameIDMappingService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 2; i++) {
        descriptor.getNameIDMappingServices().add((NameIDMappingService) buildXMLObject(nameIDMapQName));
    }

    QName assertIDReqQName = new QName(SAMLConstants.SAML20MD_NS, AssertionIDRequestService.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 3; i++) {
        descriptor.getAssertionIDRequestServices()
                .add((AssertionIDRequestService) buildXMLObject(assertIDReqQName));
    }

    QName attributeProlfileQName = new QName(SAMLConstants.SAML20MD_NS, AttributeProfile.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20MD_PREFIX);
    for (int i = 0; i < 3; i++) {
        descriptor.getAttributeProfiles().add((AttributeProfile) buildXMLObject(attributeProlfileQName));
    }
    assertEquals(expectedChildElementsDOM, descriptor);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:64,代码来源:IDPSSODescriptorTest.java


注:本文中的org.opensaml.saml2.metadata.SingleLogoutService.DEFAULT_ELEMENT_LOCAL_NAME属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。