Package org.openxri.saml

Examples of org.openxri.saml.NameID


    Subject oSubject = oAssertion.getSubject();
    if (oSubject == null) {
      return false;
    }

    NameID oNameID = oSubject.getNameID();
    if (oNameID == null) {
      return false;
    }

    if (!sSubsegment.equals(oNameID.getValue())) {
      return false;
    }

    if (!sAuthorityID.equals(oNameID.getNameQualifier())) {
      return false;
    }

    // must contain a SAML Attribute statement
    AttributeStatement oAttrStmt = oAssertion.getAttributeStatement();
View Full Code Here


  {
    if (soLog.isDebugEnabled()) soLog.debug("createAssertion(" + sXMLID + "," + sParentID + "," + sResolved + ")");

    // create the SAMLSubject
    Subject oSubject = new Subject();
    NameID oName = new NameID(Tags.TAG_NAMEID);
    oName.setNameQualifier(sParentID);
    oName.setValue(sResolved);
    oSubject.setNameID(oName);

    // create the SAML Attribute Statement
    AttributeStatement oAttrStatement = new AttributeStatement();
    Attribute oAttr = new Attribute();
    oAttr.setValue("#" + sXMLID);
    oAttr.setName(Tags.NS_XRD_V2);
    oAttrStatement.setAttribute(oAttr);

    // create the conditions
    Conditions oConditions = new Conditions();

    // now we can create the true SAML Assertion
    Assertion oXRIAssertion = new Assertion();
    oXRIAssertion.setIssueInstant(DOMUtils.toXMLDateTime(new Date()));
    NameID oIssuer = new NameID(Tags.TAG_ISSUER);
    oIssuer.setValue(moConfig.getSAMLIssuer());
    oXRIAssertion.setIssuer(oIssuer);
    oXRIAssertion.setSubject(oSubject);
    oXRIAssertion.setAttrStatement(oAttrStatement);
    oXRIAssertion.setConditions(oConditions);
View Full Code Here

  {
    if (soLog.isDebugEnabled()) soLog.debug("createAssertion(" + sXMLID + "," + sParentID + "," + sResolved + ")");

    // create the SAMLSubject
    Subject oSubject = new Subject();
    NameID oName = new NameID(Tags.TAG_NAMEID);
    oName.setNameQualifier(sParentID);
    oName.setValue(sResolved);
    oSubject.setNameID(oName);

    // create the SAML Attribute Statement
    AttributeStatement oAttrStatement = new AttributeStatement();
    Attribute oAttr = new Attribute();
    oAttr.setValue("#" + sXMLID);
    oAttr.setName(Tags.NS_XRD_V2);
    oAttrStatement.setAttribute(oAttr);

    // create the conditions
    Conditions oConditions = new Conditions();

    // now we can create the true SAML Assertion
    Assertion oXRIAssertion = new Assertion();
    oXRIAssertion.setIssueInstant(DOMUtils.toXMLDateTime(new Date()));
    NameID oIssuer = new NameID(Tags.TAG_ISSUER);
    oIssuer.setValue(moConfig.getSAMLIssuer());
    oXRIAssertion.setIssuer(oIssuer);
    oXRIAssertion.setSubject(oSubject);
    oXRIAssertion.setAttrStatement(oAttrStatement);
    oXRIAssertion.setConditions(oConditions);
View Full Code Here

    Subject oSubject = oAssertion.getSubject();
    if (oSubject == null) {
      return false;
    }

    NameID oNameID = oSubject.getNameID();
    if (oNameID == null) {
      return false;
    }

    if (!sSubsegment.equals(oNameID.getValue())) {
      return false;
    }

    if (!sAuthorityID.equals(oNameID.getNameQualifier())) {
      return false;
    }

    // must contain a SAML Attribute statement
    AttributeStatement oAttrStmt = oAssertion.getAttributeStatement();
View Full Code Here

            String sParentID = "xyz";

            // create the SAMLSubject
            Subject oSubject = new Subject();
            NameID oName = new NameID(Tags.TAG_NAMEID);
            oName.setNameQualifier(sParentID);
            oName.setValue(".epok");
            oSubject.setNameID(oName);

            // create the SAML Attribute Statement
            AttributeStatement oAttrStatement = new AttributeStatement();
            Attribute oAttr = new Attribute();
            oAttr.setValue("#" + oXRID.getXmlID());
            oAttr.setName(Tags.TAG_XRD);
            oAttrStatement.setAttribute(oAttr);

            // now we can create the true SAML Assertion
            Assertion oAssertion = new Assertion();
            NameID oIssuer = new NameID(Tags.TAG_ISSUER);
            oIssuer.setValue("World's Best");
            oAssertion.setIssuer(oIssuer);
            oAssertion.setSubject(oSubject);
            oAssertion.setAttrStatement(oAttrStatement);
            oXRID.setSAMLAssertion(oAssertion);
View Full Code Here

  {
    log.debug("createAssertion(" + sXMLID + "," + sParentID + "," + sResolved + ")");

    // create the SAMLSubject
    Subject oSubject = new Subject();
    NameID oName = new NameID(Tags.TAG_NAMEID);
    oName.setNameQualifier(sParentID);
    oName.setValue(sResolved);
    oSubject.setNameID(oName);

    // create the SAML Attribute Statement
    AttributeStatement oAttrStatement = new AttributeStatement();
    Attribute oAttr = new Attribute();
    oAttr.setValue("#" + sXMLID);
    oAttr.setName(Tags.NS_XRD_V2);
    oAttrStatement.setAttribute(oAttr);

    // create the conditions
    Conditions oConditions = new Conditions();

    // now we can create the true SAML Assertion
    Assertion oXRIAssertion = new Assertion();
    oXRIAssertion.setIssueInstant(DOMUtils.toXMLDateTime(new Date()));
    NameID oIssuer = new NameID(Tags.TAG_ISSUER);
    oIssuer.setValue(this.samlIssuer);
    oXRIAssertion.setIssuer(oIssuer);
    oXRIAssertion.setSubject(oSubject);
    oXRIAssertion.setAttrStatement(oAttrStatement);
    oXRIAssertion.setConditions(oConditions);
View Full Code Here

  {
    log.debug("createAssertion(" + sXMLID + "," + sParentID + "," + sResolved + ")");

    // create the SAMLSubject
    Subject oSubject = new Subject();
    NameID oName = new NameID(Tags.TAG_NAMEID);
    oName.setNameQualifier(sParentID);
    oName.setValue(sResolved);
    oSubject.setNameID(oName);

    // create the SAML Attribute Statement
    AttributeStatement oAttrStatement = new AttributeStatement();
    Attribute oAttr = new Attribute();
    oAttr.setValue("#" + sXMLID);
    oAttr.setName(Tags.NS_XRD_V2);
    oAttrStatement.setAttribute(oAttr);

    // create the conditions
    Conditions oConditions = new Conditions();

    // now we can create the true SAML Assertion
    Assertion oXRIAssertion = new Assertion();
    oXRIAssertion.setIssueInstant(DOMUtils.toXMLDateTime(new Date()));
    NameID oIssuer = new NameID(Tags.TAG_ISSUER);
    oIssuer.setValue(this.samlIssuer);
    oXRIAssertion.setIssuer(oIssuer);
    oXRIAssertion.setSubject(oSubject);
    oXRIAssertion.setAttrStatement(oAttrStatement);
    oXRIAssertion.setConditions(oConditions);
View Full Code Here

    Subject oSubject = oAssertion.getSubject();
    if (oSubject == null) {
      return false;
    }

    NameID oNameID = oSubject.getNameID();
    if (oNameID == null) {
      return false;
    }

    if (!sSubsegment.equals(oNameID.getValue())) {
      return false;
    }

    if (!sAuthorityID.equals(oNameID.getNameQualifier())) {
      return false;
    }

    // must contain a SAML Attribute statement
    AttributeStatement oAttrStmt = oAssertion.getAttributeStatement();
View Full Code Here

  {
    log.debug("createAssertion(" + sXMLID + "," + sParentID + "," + sResolved + ")");

    // create the SAMLSubject
    Subject oSubject = new Subject();
    NameID oName = new NameID(Tags.TAG_NAMEID);
    oName.setNameQualifier(sParentID);
    oName.setValue(sResolved);
    oSubject.setNameID(oName);

    // create the SAML Attribute Statement
    AttributeStatement oAttrStatement = new AttributeStatement();
    Attribute oAttr = new Attribute();
    oAttr.setValue("#" + sXMLID);
    oAttr.setName(Tags.NS_XRD_V2);
    oAttrStatement.setAttribute(oAttr);

    // create the conditions
    Conditions oConditions = new Conditions();

    // now we can create the true SAML Assertion
    Assertion oXRIAssertion = new Assertion();
    oXRIAssertion.setIssueInstant(DOMUtils.toXMLDateTime(new Date()));
    NameID oIssuer = new NameID(Tags.TAG_ISSUER);
    oIssuer.setValue(this.samlIssuer);
    oXRIAssertion.setIssuer(oIssuer);
    oXRIAssertion.setSubject(oSubject);
    oXRIAssertion.setAttrStatement(oAttrStatement);
    oXRIAssertion.setConditions(oConditions);
View Full Code Here

    private Assertion createAssertion(
        String sXMLID, String sParentID, String sResolved)
    {
        // create the SAMLSubject
        Subject oSubject = new Subject();
        NameID oName = new NameID(Tags.TAG_NAMEID);
        oName.setNameQualifier(sParentID);
        oName.setValue(sResolved);
        oSubject.setNameID(oName);

        // create the SAML Attribute Statement
        AttributeStatement oAttrStatement = new AttributeStatement();
        Attribute oAttr = new Attribute();
        oAttr.setValue("#" + sXMLID);
        oAttr.setName(Tags.NS_XRD_V2);
        oAttrStatement.setAttribute(oAttr);

        // create the conditions
        Conditions oConditions = new Conditions();

        // now we can create the true SAML Assertion
        Assertion oXRIAssertion = new Assertion();
        oXRIAssertion.setIssueInstant(DOMUtils.toXMLDateTime(new Date()));
        NameID oIssuer = new NameID(Tags.TAG_ISSUER);
        oIssuer.setValue(msIssuer);
        oXRIAssertion.setIssuer(oIssuer);
        oXRIAssertion.setSubject(oSubject);
        oXRIAssertion.setAttrStatement(oAttrStatement);
        oXRIAssertion.setConditions(oConditions);
View Full Code Here

TOP

Related Classes of org.openxri.saml.NameID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.