本文整理汇总了Java中org.opensaml.saml2.metadata.AuthzService类的典型用法代码示例。如果您正苦于以下问题:Java AuthzService类的具体用法?Java AuthzService怎么用?Java AuthzService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AuthzService类属于org.opensaml.saml2.metadata包,在下文中一共展示了AuthzService类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processChildElement
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
throws UnmarshallingException {
PDPDescriptor descriptor = (PDPDescriptor) parentSAMLObject;
if (childSAMLObject instanceof AuthzService) {
descriptor.getAuthzServices().add((AuthzService) childSAMLObject);
} else if (childSAMLObject instanceof AssertionIDRequestService) {
descriptor.getAssertionIDRequestServices().add((AssertionIDRequestService) childSAMLObject);
} else if (childSAMLObject instanceof NameIDFormat) {
descriptor.getNameIDFormats().add((NameIDFormat) childSAMLObject);
} else {
super.processChildElement(parentSAMLObject, childSAMLObject);
}
}
示例2: getEndpoints
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@inheritDoc} */
public List<Endpoint> getEndpoints(QName type) {
if(type.equals(AuthzService.DEFAULT_ELEMENT_NAME)){
return Collections.unmodifiableList(new ArrayList<Endpoint>(authzServices));
}else if(type.equals(AssertionIDRequestService.DEFAULT_ELEMENT_NAME)){
return Collections.unmodifiableList(new ArrayList<Endpoint>(assertionIDRequestServices));
}
return null;
}
示例3: populateRequiredData
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@inheritDoc} */
protected void populateRequiredData() {
super.populateRequiredData();
PDPDescriptor pdpDescriptor = (PDPDescriptor) target;
AuthzService authzService = (AuthzService) buildXMLObject(new QName(SAMLConstants.SAML20MD_NS,
AuthzService.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX));
pdpDescriptor.getAuthzServices().add(authzService);
}
示例4: testSingleElementUnmarshall
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementUnmarshall() {
AuthzService service = (AuthzService) unmarshallElement(singleElementFile);
assertEquals("Binding URI was not expected value", expectedBinding, service.getBinding());
assertEquals("Location was not expected value", expectedLocation, service.getLocation());
}
示例5: testSingleElementOptionalAttributesUnmarshall
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@inheritDoc} */
public void testSingleElementOptionalAttributesUnmarshall() {
AuthzService service = (AuthzService) unmarshallElement(singleElementOptionalAttributesFile);
assertEquals("Binding URI was not expected value", expectedBinding, service.getBinding());
assertEquals("Location was not expected value", expectedLocation, service.getLocation());
assertEquals("ResponseLocation was not expected value", expectedResponseLocation, service.getResponseLocation());;
}
示例6: testSingleElementMarshall
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@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);
}
示例7: testSingleElementOptionalAttributesMarshall
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@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);
}
示例8: testChildElementsMarshall
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@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);
}
示例9: getAuthzServices
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@inheritDoc} */
public List<AuthzService> getAuthzServices() {
return authzServices;
}
示例10: buildObject
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@inheritDoc} */
public AuthzService buildObject() {
return buildObject(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
}
示例11: AuthzServiceUnmarshaller
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/**
* Constructor
*/
public AuthzServiceUnmarshaller() {
super(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME);
}
示例12: AuthzServiceMarshaller
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/**
* Constructor
*/
public AuthzServiceMarshaller() {
super(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME);
}
示例13: AuthzServiceSchemaTest
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** Constructor */
public AuthzServiceSchemaTest() {
targetQName = new QName(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20MD_PREFIX);
validator = new AuthzServiceSchemaValidator();
}
示例14: PDPDescriptorImpl
import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/**
* Constructor.
*
* @param namespaceURI the namespace the element is in
* @param elementLocalName the local name of the XML element this Object represents
* @param namespacePrefix the prefix for the given namespace
*/
protected PDPDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix) {
super(namespaceURI, elementLocalName, namespacePrefix);
authzServices = new XMLObjectChildrenList<AuthzService>(this);
assertionIDRequestServices = new XMLObjectChildrenList<AssertionIDRequestService>(this);
nameIDFormats = new XMLObjectChildrenList<NameIDFormat>(this);
}