本文整理汇总了Java中org.opensaml.saml2.metadata.AuthzService.DEFAULT_ELEMENT_LOCAL_NAME属性的典型用法代码示例。如果您正苦于以下问题:Java AuthzService.DEFAULT_ELEMENT_LOCAL_NAME属性的具体用法?Java AuthzService.DEFAULT_ELEMENT_LOCAL_NAME怎么用?Java AuthzService.DEFAULT_ELEMENT_LOCAL_NAME使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.opensaml.saml2.metadata.AuthzService
的用法示例。
在下文中一共展示了AuthzService.DEFAULT_ELEMENT_LOCAL_NAME属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testSingleElementMarshall
/** {@inheritDoc} */
public void testSingleElementMarshall() {
QName qname = new QName(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME);
AuthzService service = (AuthzService) buildXMLObject(qname);
service.setBinding(expectedBinding);
service.setLocation(expectedLocation);
assertEquals(expectedDOM, service);
}
示例2: testSingleElementOptionalAttributesMarshall
/** {@inheritDoc} */
public void testSingleElementOptionalAttributesMarshall() {
QName qname = new QName(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME);
AuthzService service = (AuthzService) buildXMLObject(qname);
service.setBinding(expectedBinding);
service.setLocation(expectedLocation);
service.setResponseLocation(expectedResponseLocation);
assertEquals(expectedOptionalAttributesDOM, service);
}
示例3: testChildElementsMarshall
/** {@inheritDoc} */
public void testChildElementsMarshall() {
QName qname = new QName(SAMLConstants.SAML20MD_NS, PDPDescriptor.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
PDPDescriptor descriptor = (PDPDescriptor) buildXMLObject(qname);
QName extensionsQName = new QName(SAMLConstants.SAML20MD_NS, Extensions.LOCAL_NAME,
SAMLConstants.SAML20MD_PREFIX);
descriptor.setExtensions((Extensions) buildXMLObject(extensionsQName));
QName authzQName = new QName(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
for (int i = 0; i < 3; i++) {
descriptor.getAuthzServices().add((AuthzService) buildXMLObject(authzQName));
}
QName assertIDReqQName = new QName(SAMLConstants.SAML20MD_NS, AssertionIDRequestService.DEFAULT_ELEMENT_LOCAL_NAME,
SAMLConstants.SAML20MD_PREFIX);
for (int i = 0; i < 2; i++) {
descriptor.getAssertionIDRequestServices()
.add((AssertionIDRequestService) buildXMLObject(assertIDReqQName));
}
QName nameIDFormatQName = new QName(SAMLConstants.SAML20MD_NS, NameIDFormat.DEFAULT_ELEMENT_LOCAL_NAME,
SAMLConstants.SAML20MD_PREFIX);
descriptor.getNameIDFormats().add((NameIDFormat) buildXMLObject(nameIDFormatQName));
assertEquals(expectedChildElementsDOM, descriptor);
}
示例4: AuthzServiceUnmarshaller
/**
* Constructor
*/
public AuthzServiceUnmarshaller() {
super(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME);
}
示例5: AuthzServiceMarshaller
/**
* Constructor
*/
public AuthzServiceMarshaller() {
super(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME);
}
示例6: AuthzServiceSchemaTest
/** Constructor */
public AuthzServiceSchemaTest() {
targetQName = new QName(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
validator = new AuthzServiceSchemaValidator();
}