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


Java AuthzService类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:16,代码来源:PDPDescriptorUnmarshaller.java

示例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;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:PDPDescriptorImpl.java

示例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);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:9,代码来源:PDPDescriptorSchemaTest.java

示例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());
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:8,代码来源:AuthzServiceTest.java

示例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());;
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:9,代码来源:AuthzServiceTest.java

示例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);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:11,代码来源:AuthzServiceTest.java

示例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);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:12,代码来源:AuthzServiceTest.java

示例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);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:28,代码来源:PDPDescriptorTest.java

示例9: getAuthzServices

import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/** {@inheritDoc} */
public List<AuthzService> getAuthzServices() {
    return authzServices;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:PDPDescriptorImpl.java

示例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);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:AuthzServiceBuilder.java

示例11: AuthzServiceUnmarshaller

import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/**
 * Constructor
 */
public AuthzServiceUnmarshaller() {
    super(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:7,代码来源:AuthzServiceUnmarshaller.java

示例12: AuthzServiceMarshaller

import org.opensaml.saml2.metadata.AuthzService; //导入依赖的package包/类
/**
 * Constructor
 */
public AuthzServiceMarshaller() {
    super(SAMLConstants.SAML20MD_NS, AuthzService.DEFAULT_ELEMENT_LOCAL_NAME);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:7,代码来源:AuthzServiceMarshaller.java

示例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();
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:6,代码来源:AuthzServiceSchemaTest.java

示例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);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:PDPDescriptorImpl.java


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