本文整理汇总了Java中org.opensaml.saml2.core.SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME属性的典型用法代码示例。如果您正苦于以下问题:Java SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME属性的具体用法?Java SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME怎么用?Java SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.opensaml.saml2.core.SubjectConfirmation
的用法示例。
在下文中一共展示了SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testSingleElementMarshall
/** {@inheritDoc} */
public void testSingleElementMarshall() {
QName qname = new QName(SAMLConstants.SAML20_NS, SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
SubjectConfirmation subjectConfirmation = (SubjectConfirmation) buildXMLObject(qname);
subjectConfirmation.setMethod(expectedMethod);
assertEquals(expectedDOM, subjectConfirmation);
}
示例2: testChildElementsMarshall
/** {@inheritDoc} */
public void testChildElementsMarshall() {
QName qname = new QName(SAMLConstants.SAML20_NS, SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
SubjectConfirmation subjectConfirmation = (SubjectConfirmation) buildXMLObject(qname);
QName nameIDQName = new QName(SAMLConstants.SAML20_NS, NameID.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
subjectConfirmation.setNameID((NameID) buildXMLObject(nameIDQName));
QName subjectConfirmationDataQName = new QName(SAMLConstants.SAML20_NS, SubjectConfirmationData.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
subjectConfirmation.setSubjectConfirmationData((SubjectConfirmationData) buildXMLObject(subjectConfirmationDataQName));
assertEquals(expectedChildElementsDOM, subjectConfirmation);
}
示例3: testChildElementsWithEncryptedIDMarshall
/** {@inheritDoc}
* @throws XMLParserException */
public void testChildElementsWithEncryptedIDMarshall() throws XMLParserException {
QName qname = new QName(SAMLConstants.SAML20_NS, SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
SubjectConfirmation subjectConfirmation = (SubjectConfirmation) buildXMLObject(qname);
QName encryptedIDQName = new QName(SAMLConstants.SAML20_NS, EncryptedID.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
subjectConfirmation.setEncryptedID((EncryptedID) buildXMLObject(encryptedIDQName));
QName subjectConfirmationDataQName = new QName(SAMLConstants.SAML20_NS, SubjectConfirmationData.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
subjectConfirmation.setSubjectConfirmationData((SubjectConfirmationData) buildXMLObject(subjectConfirmationDataQName));
Document expectedChildElementsWithEncryptedID = parser.parse(SubjectConfirmationTest.class
.getResourceAsStream(childElementsWithEncryptedIDFile));
assertEquals(expectedChildElementsWithEncryptedID, subjectConfirmation);
}
示例4: testChildElementsMarshall
/** {@inheritDoc} */
public void testChildElementsMarshall() {
QName qname = new QName(SAMLConstants.SAML20_NS, Subject.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
Subject subject = (Subject) buildXMLObject(qname);
QName nameIDQName = new QName(SAMLConstants.SAML20_NS, NameID.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
subject.setNameID((NameID) buildXMLObject(nameIDQName));
QName subjectConfirmationQName = new QName(SAMLConstants.SAML20_NS, SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
for (int i = 0; i < expectedSubjectConfirmationCount; i++) {
subject.getSubjectConfirmations().add((SubjectConfirmation) buildXMLObject(subjectConfirmationQName));
}
assertEquals(expectedChildElementsDOM, subject);
}
示例5: SubjectConfirmationUnmarshaller
/** Constructor. */
public SubjectConfirmationUnmarshaller() {
super(SAMLConstants.SAML20_NS, SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME);
}
示例6: SubjectConfirmationMarshaller
/** Constructor. */
public SubjectConfirmationMarshaller() {
super(SAMLConstants.SAML20_NS, SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME);
}
示例7: SubjectConfirmationSchemaTest
/** Constructor */
public SubjectConfirmationSchemaTest() {
targetQName = new QName(SAMLConstants.SAML20_NS, SubjectConfirmation.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX);
validator = new SubjectConfirmationSchemaValidator();
}