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


Java AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME属性代码示例

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


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

示例1: testChildElementsMarshall

/** {@inheritDoc} */
public void testChildElementsMarshall() {
    QName qname = new QName(SAMLConstants.SAML20_NS, Assertion.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    Assertion assertion = (Assertion) buildXMLObject(qname);

    QName issuerQName = new QName(SAMLConstants.SAML20_NS, Issuer.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    assertion.setIssuer((Issuer) buildXMLObject(issuerQName));
    
    QName subjectQName = new QName(SAMLConstants.SAML20_NS, Subject.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    assertion.setSubject((Subject) buildXMLObject(subjectQName));
    
    QName conditionsQName = new QName(SAMLConstants.SAML20_NS, Conditions.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    assertion.setConditions((Conditions) buildXMLObject(conditionsQName));
    
    QName adviceQName = new QName(SAMLConstants.SAML20_NS, Advice.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    assertion.setAdvice((Advice) buildXMLObject(adviceQName));

    QName authnStatementQName = new QName(SAMLConstants.SAML20_NS, AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    for (int i = 0; i < authnStatementCount; i++) {
        assertion.getAuthnStatements().add((AuthnStatement) buildXMLObject(authnStatementQName));
    }
    
    QName authzDecisionStatementQName = new QName(SAMLConstants.SAML20_NS, AuthzDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    for (int i = 0; i < authzDecisionStatementCount; i++) {
        assertion.getAuthzDecisionStatements().add((AuthzDecisionStatement) buildXMLObject(authzDecisionStatementQName));
    }
    
    QName attributeStatementQName = new QName(SAMLConstants.SAML20_NS, AttributeStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    for (int i = 0; i < attributeStatementCount; i++) {
        assertion.getAttributeStatements().add((AttributeStatement) buildXMLObject(attributeStatementQName));
    }
    
    assertEquals(expectedChildElementsDOM, assertion);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:34,代码来源:AssertionTest.java

示例2: testSingleElementMarshall

/** {@inheritDoc} */
public void testSingleElementMarshall() {
    QName qname = new QName(SAMLConstants.SAML20_NS, AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    AuthnStatement authnStatement = (AuthnStatement) buildXMLObject(qname);

    authnStatement.setAuthnInstant(expectedAuthnInstant);
    assertEquals(expectedDOM, authnStatement);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:8,代码来源:AuthnStatementTest.java

示例3: testSingleElementOptionalAttributesMarshall

/** {@inheritDoc} */
public void testSingleElementOptionalAttributesMarshall() {
    QName qname = new QName(SAMLConstants.SAML20_NS, AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    AuthnStatement authnStatement = (AuthnStatement) buildXMLObject(qname);

    authnStatement.setAuthnInstant(expectedAuthnInstant);
    authnStatement.setSessionIndex(expectedSessionIndex);
    authnStatement.setSessionNotOnOrAfter(expectedSessionNotOnOrAfter);

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

示例4: testChildElementsMarshall

/** {@inheritDoc} */
public void testChildElementsMarshall() {
    QName qname = new QName(SAMLConstants.SAML20_NS, AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    AuthnStatement authnStatement = (AuthnStatement) buildXMLObject(qname);

    QName subjectLocalityQName = new QName(SAMLConstants.SAML20_NS, SubjectLocality.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    authnStatement.setSubjectLocality((SubjectLocality) buildXMLObject(subjectLocalityQName));
    
    QName authnContextQName = new QName(SAMLConstants.SAML20_NS, AuthnContext.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    authnStatement.setAuthnContext((AuthnContext) buildXMLObject(authnContextQName));
    
    assertEquals(expectedChildElementsDOM, authnStatement);
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:13,代码来源:AuthnStatementTest.java

示例5: getAuthnStatements

/** {@inheritDoc} */
public List<AuthnStatement> getAuthnStatements() {
    QName statementQName = new QName(SAMLConstants.SAML20_NS, AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME,
            SAMLConstants.SAML20_PREFIX);
    return (List<AuthnStatement>) statements.subList(statementQName);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:AssertionImpl.java

示例6: AuthnStatementUnmarshaller

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

示例7: AuthnStatementMarshaller

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

示例8: AuthnStatementSchemaTest

/** Constructor */
public AuthnStatementSchemaTest() {
    targetQName = new QName(SAMLConstants.SAML20_NS, AuthnStatement.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
    validator = new AuthnStatementSchemaValidator();
}
 
开发者ID:apigee,项目名称:java-opensaml2,代码行数:5,代码来源:AuthnStatementSchemaTest.java


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