Java Code Examples for org.opensaml.common.xml.SAMLConstants#SAML1_NS

The following examples show how to use org.opensaml.common.xml.SAMLConstants#SAML1_NS . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AdviceImpl.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
/** {@inheritDoc} */
public List<AssertionIDReference> getAssertionIDReferences() {
    //
    // The cast in the line below is unsafe. (it's checking against the erasure of l - which is List.
    // We are, howeverever guaranteed by sublist that although l is 'just' a List it
    // will only contain <AssertionIDReferences> explicit code in IndexedXMLObjectChildrenList$ListView.indexCheck
    // helps us be sure.

    QName assertionIDRefQName = new QName(SAMLConstants.SAML1_NS, AssertionIDReference.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<AssertionIDReference>) assertionChildren.subList(assertionIDRefQName);
}
 
Example 2
Source File: AssertionImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<SubjectStatement> getSubjectStatements() {
    QName statementQName = new QName(SAMLConstants.SAML1_NS, SubjectStatement.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<SubjectStatement>) statements.subList(statementQName);
}
 
Example 3
Source File: AssertionImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<AuthenticationStatement> getAuthenticationStatements() {
    QName statementQName = new QName(SAMLConstants.SAML1_NS, AuthenticationStatement.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<AuthenticationStatement>) statements.subList(statementQName);
}
 
Example 4
Source File: AssertionImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<AuthorizationDecisionStatement> getAuthorizationDecisionStatements() {
    QName statementQName = new QName(SAMLConstants.SAML1_NS, AuthorizationDecisionStatement.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<AuthorizationDecisionStatement>) statements.subList(statementQName);
}
 
Example 5
Source File: AssertionImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<AttributeStatement> getAttributeStatements() {
    QName statementQName = new QName(SAMLConstants.SAML1_NS, AttributeStatement.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<AttributeStatement>) statements.subList(statementQName);
}
 
Example 6
Source File: AdviceImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<Assertion> getAssertions() {
    // See Comment for getAssertionIDReference as to why this unsafe casting is OK
    QName assertionQname = new QName(SAMLConstants.SAML1_NS, Assertion.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<Assertion>) assertionChildren.subList(assertionQname);
}
 
Example 7
Source File: AssertionBuilder.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public AssertionImpl buildObject() {
    return new AssertionImpl(SAMLConstants.SAML1_NS, Assertion.DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML1_PREFIX);
}
 
Example 8
Source File: EvidenceImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<AssertionIDReference> getAssertionIDReferences() {
    QName qname = new QName(SAMLConstants.SAML1_NS, AssertionIDReference.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<AssertionIDReference>) evidence.subList(qname);
}
 
Example 9
Source File: EvidenceImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<Assertion> getAssertions() {
    QName qname = new QName(SAMLConstants.SAML1_NS, Assertion.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<Assertion>) evidence.subList(qname);
}
 
Example 10
Source File: ConditionsImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<AudienceRestrictionCondition> getAudienceRestrictionConditions() {
    QName qname = new QName(SAMLConstants.SAML1_NS, AudienceRestrictionCondition.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<AudienceRestrictionCondition>) conditions.subList(qname);
}
 
Example 11
Source File: ConditionsImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/** {@inheritDoc} */
public List<DoNotCacheCondition> getDoNotCacheConditions() {
    QName qname = new QName(SAMLConstants.SAML1_NS, DoNotCacheCondition.DEFAULT_ELEMENT_LOCAL_NAME);
    return (List<DoNotCacheCondition>) conditions.subList(qname);
}