Package org.picketlink.identity.federation.saml.v2.assertion

Examples of org.picketlink.identity.federation.saml.v2.assertion.SubjectConfirmationType


      ConditionsType conditions = SAMLAssertionFactory.createConditions(lifetime.getCreated(), lifetime.getExpires(),
            restriction);

      // TODO: implement support for the other confirmation methods.
      String confirmationMethod = SAMLUtil.SAML2_BEARER_URI;
      SubjectConfirmationType subjectConfirmation = SAMLAssertionFactory.createSubjectConfirmation(null,
            confirmationMethod, null);

      // create a subject using the caller principal.
      Principal principal = context.getCallerPrincipal();
      String subjectName = principal == null ? "ANONYMOUS" : principal.getName();
View Full Code Here


    * @param method
    * @return
    */
   public static SubjectConfirmationType createSubjectConfirmation(String method)
   {
      SubjectConfirmationType sct = assertionObjectFactory.createSubjectConfirmationType();
      sct.setMethod(method);
      return sct;
   }
View Full Code Here

      nameIDType.setValue(idp.getNameIDFormatValue());
     
      JAXBElement<NameIDType> jaxbNameIDType = JBossSAMLBaseFactory.createNameID(nameIDType);
      subjectType.getContent().add(jaxbNameIDType);
     
      SubjectConfirmationType subjectConfirmation =
            JBossSAMLBaseFactory.createSubjectConfirmation(idp.getSubjectConfirmationMethod());
      SubjectConfirmationDataType subjectConfirmationData =
           JBossSAMLBaseFactory.createSubjectConfirmationData(sp.getRequestID(),
                 responseDestinationURI, issueInstant);
      subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
     
      JAXBElement<SubjectConfirmationType> jaxbSubjectConfirmationType =
         JBossSAMLBaseFactory.createSubjectConfirmation(subjectConfirmation);
     
      subjectType.getContent().add(jaxbSubjectConfirmationType);
View Full Code Here

    * @return the constructed {@code SubjectConfirmationType} instance.
    */
   public static SubjectConfirmationType createSubjectConfirmation(NameIDType nameID, String confirmationMethod,
         KeyInfoConfirmationDataType keyInfoData)
   {
      SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType();
      subjectConfirmation.setNameID(nameID);
      subjectConfirmation.setMethod(confirmationMethod);
      subjectConfirmation.setSubjectConfirmationData(keyInfoData);
      return subjectConfirmation;
   }
View Full Code Here

      ConditionsType conditions = SAMLAssertionFactory.createConditions(lifetime.getCreated(), lifetime.getExpires(),
            restriction);

      // TODO: implement support for the other confirmation methods.
      String confirmationMethod = SAMLUtil.SAML2_BEARER_URI;
      SubjectConfirmationType subjectConfirmation = SAMLAssertionFactory.createSubjectConfirmation(null,
            confirmationMethod, null);

      // create a subject using the caller principal.
      Principal principal = context.getCallerPrincipal();
      String subjectName = principal == null ? "ANONYMOUS" : principal.getName();
View Full Code Here

      }
      else
         confirmationMethod = SAMLUtil.SAML2_BEARER_URI;
      // TODO: implement the SENDER_VOUCHES scenario.
     
      SubjectConfirmationType subjectConfirmation = SAMLAssertionFactory.createSubjectConfirmation(null,
            confirmationMethod, keyInfoDataType);

      // create a subject using the caller principal.
      Principal principal = context.getCallerPrincipal();
      String subjectName = principal == null ? "ANONYMOUS" : principal.getName();
View Full Code Here

    * @return the constructed {@code SubjectConfirmationType} instance.
    */
   public static SubjectConfirmationType createSubjectConfirmation(NameIDType nameID, String confirmationMethod,
         KeyInfoConfirmationDataType keyInfoData)
   {
      SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType();
      subjectConfirmation.setNameID(nameID);
      subjectConfirmation.setMethod(confirmationMethod);
      subjectConfirmation.setSubjectConfirmationData(keyInfoData);
      return subjectConfirmation;
   }
View Full Code Here

      return subjectType;
   }
  
   public static SubjectConfirmationType createSubjectConfirmation(String method)
   {
      SubjectConfirmationType sct = assertionObjectFactory.createSubjectConfirmationType();
      sct.setMethod(method);
      return sct;
   }
View Full Code Here

      nameIDType.setValue(idp.getNameIDFormatValue());
     
      JAXBElement<NameIDType> jaxbNameIDType = JBossSAMLBaseFactory.createNameID(nameIDType);
      subjectType.getContent().add(jaxbNameIDType);
     
      SubjectConfirmationType subjectConfirmation =
            JBossSAMLBaseFactory.createSubjectConfirmation(idp.getSubjectConfirmationMethod());
      SubjectConfirmationDataType subjectConfirmationData =
           JBossSAMLBaseFactory.createSubjectConfirmationData(sp.getRequestID(),
                 responseDestinationURI, issueInstant);
      subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
     
      JAXBElement<SubjectConfirmationType> jaxbSubjectConfirmationType =
         JBossSAMLBaseFactory.createSubjectConfirmation(subjectConfirmation);
     
      subjectType.getContent().add(jaxbSubjectConfirmationType);
View Full Code Here

    * @return the constructed {@code SubjectConfirmationType} instance.
    */
   public static SubjectConfirmationType createSubjectConfirmation(NameIDType nameID, String confirmationMethod,
         KeyInfoConfirmationDataType keyInfoData)
   {
      SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType();
      subjectConfirmation.setNameID(nameID);
      subjectConfirmation.setMethod(confirmationMethod);
      subjectConfirmation.setSubjectConfirmationData(keyInfoData);
      return subjectConfirmation;
   }
View Full Code Here

TOP

Related Classes of org.picketlink.identity.federation.saml.v2.assertion.SubjectConfirmationType

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.