Tabnine Logo
org.opensaml.saml.saml1.core
Code IndexAdd Tabnine to your IDE (free)

How to use org.opensaml.saml.saml1.core

Best Java code snippets using org.opensaml.saml.saml1.core (Showing top 20 results out of 315)

origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void processElementContent(XMLObject samlObject, String elementContent) {
    NameIdentifier nameIdentifier = (NameIdentifier) samlObject;
    nameIdentifier.setValue(elementContent);
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void processElementContent(XMLObject samlObject, String elementContent) {
    Audience audience = (Audience) samlObject;
    audience.setUri(elementContent);
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void processElementContent(XMLObject samlObject, String elementContent) {
    ConfirmationMethod confirmationMethod = (ConfirmationMethod) samlObject;

    confirmationMethod.setConfirmationMethod(elementContent);
  }
}
origin: org.jasig.cas/cas-server-support-saml

/**
 * New subject element with given confirmation method.
 *
 * @param identifier the identifier
 * @param confirmationMethod the confirmation method
 * @return the subject
 */
public Subject newSubject(final String identifier, final String confirmationMethod) {
  final SubjectConfirmation confirmation = newSamlObject(SubjectConfirmation.class);
  final ConfirmationMethod method = newSamlObject(ConfirmationMethod.class);
  method.setConfirmationMethod(confirmationMethod);
  confirmation.getConfirmationMethods().add(method);
  final NameIdentifier nameIdentifier = newSamlObject(NameIdentifier.class);
  nameIdentifier.setNameIdentifier(identifier);
  final Subject subject = newSamlObject(Subject.class);
  subject.setNameIdentifier(nameIdentifier);
  subject.setSubjectConfirmation(confirmation);
  return subject;
}
origin: apache/cxf

private static org.opensaml.saml.saml1.core.Subject getSaml1Subject(SamlAssertionWrapper assertionW) {
  for (Statement stmt : assertionW.getSaml1().getStatements()) {
    org.opensaml.saml.saml1.core.Subject samlSubject = null;
    if (stmt instanceof AttributeStatement) {
      AttributeStatement attrStmt = (AttributeStatement) stmt;
      samlSubject = attrStmt.getSubject();
    } else if (stmt instanceof AuthenticationStatement) {
      AuthenticationStatement authStmt = (AuthenticationStatement) stmt;
      samlSubject = authStmt.getSubject();
    } else {
      AuthorizationDecisionStatement authzStmt =
        (AuthorizationDecisionStatement)stmt;
      samlSubject = authzStmt.getSubject();
    }
    if (samlSubject != null) {
      return samlSubject;
    }
  }
  return null;
}
origin: org.jasig.cas/cas-server-support-saml

/**
 * Create a new SAML status object.
 *
 * @param codeValue the code value
 * @param statusMessage the status message
 * @return the status
 */
public Status newStatus(final QName codeValue, final String statusMessage) {
  final Status status = newSamlObject(Status.class);
  final StatusCode code = newSamlObject(StatusCode.class);
  code.setValue(codeValue);
  status.setStatusCode(code);
  if (statusMessage != null) {
    final StatusMessage message = newSamlObject(StatusMessage.class);
    message.setMessage(statusMessage);
    status.setStatusMessage(message);
  }
  return status;
}
origin: net.shibboleth.idp/idp-saml-impl

  public String apply(final org.opensaml.saml.saml1.core.Assertion input) {
    return input.getID();
  }
});
origin: net.shibboleth.idp/idp-saml-impl

  public DateTime apply(final org.opensaml.saml.saml1.core.Assertion input) {
    return input.getIssueInstant();
  }
});
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    NameIdentifier nameIdentifier = (NameIdentifier) samlObject;

    if (nameIdentifier.getValue() != null) {
      ElementSupport.appendTextContent(domElement, nameIdentifier.getValue());
    }
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void processElementContent(XMLObject samlObject, String elementContent) {
    StatusMessage statusMessage = (StatusMessage) samlObject;
    statusMessage.setMessage(elementContent);
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void marshallAttributes(XMLObject samlElement, Element domElement) throws MarshallingException {
    AuthorizationDecisionStatement authorizationDecisionStatement;

    authorizationDecisionStatement = (AuthorizationDecisionStatement) samlElement;

    if (authorizationDecisionStatement.getResource() != null) {
      domElement.setAttributeNS(null, AuthorizationDecisionStatement.RESOURCE_ATTRIB_NAME,
          authorizationDecisionStatement.getResource());
    }

    if (authorizationDecisionStatement.getDecision() != null) {
      domElement.setAttributeNS(null, AuthorizationDecisionStatement.DECISION_ATTRIB_NAME,
          authorizationDecisionStatement.getDecision().toString());
    }
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void processElementContent(XMLObject samlObject, String elementContent) {
    Action action = (Action) samlObject;
    action.setContents(elementContent);
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void processElementContent(XMLObject samlObject, String elementContent) {
    AssertionIDReference assertionIDReference = (AssertionIDReference) samlObject;

    assertionIDReference.setReference(elementContent);
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    StatusMessage statusMessage = (StatusMessage) samlObject;

    if (statusMessage.getMessage() != null) {
      ElementSupport.appendTextContent(domElement, statusMessage.getMessage());
    }
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    ConfirmationMethod confirmationMethod = (ConfirmationMethod) samlObject;

    ElementSupport.appendTextContent(domElement, confirmationMethod.getConfirmationMethod());
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void processElementContent(XMLObject samlObject, String elementContent) {
    AssertionArtifact assertionArtifact = (AssertionArtifact) samlObject;

    assertionArtifact.setAssertionArtifact(elementContent);
  }
}
origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
    Action action = (Action) samlObject;

    if (action.getContents() != null) {
      ElementSupport.appendTextContent(domElement, action.getContents());
    }
  }
}
origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
    throws UnmarshallingException {
  ResponseAbstractType response = (ResponseAbstractType) parentSAMLObject;
  if (childSAMLObject instanceof Signature) {
    response.setSignature((Signature) childSAMLObject);
  } else {
    super.processChildElement(parentSAMLObject, childSAMLObject);
  }
}
origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
    throws UnmarshallingException {
  SubjectStatement statement = (SubjectStatement) parentSAMLObject;
  if (childSAMLObject instanceof Subject) {
    statement.setSubject((Subject) childSAMLObject);
  } else {
    super.processChildElement(parentSAMLObject, childSAMLObject);
  }
}
origin: org.apache.cxf/cxf-rt-rs-security-xml

private static org.opensaml.saml.saml1.core.Subject getSaml1Subject(SamlAssertionWrapper assertionW) {
  for (Statement stmt : assertionW.getSaml1().getStatements()) {
    org.opensaml.saml.saml1.core.Subject samlSubject = null;
    if (stmt instanceof AttributeStatement) {
      AttributeStatement attrStmt = (AttributeStatement) stmt;
      samlSubject = attrStmt.getSubject();
    } else if (stmt instanceof AuthenticationStatement) {
      AuthenticationStatement authStmt = (AuthenticationStatement) stmt;
      samlSubject = authStmt.getSubject();
    } else {
      AuthorizationDecisionStatement authzStmt =
        (AuthorizationDecisionStatement)stmt;
      samlSubject = authzStmt.getSubject();
    }
    if (samlSubject != null) {
      return samlSubject;
    }
  }
  return null;
}
org.opensaml.saml.saml1.core

Most used classes

  • Assertion
    This interface defines how the object representing a SAML 1 Assertion element behaves.
  • AttributeStatement
    This interface defines how the object representing a SAML 1 AttributeStatement element behaves.
  • Attribute
    This interface defines how the object representing a SAML 1 Attribute element behaves.
  • AuthenticationStatement
    This interface defines how the object representing a SAML1 AuthenticationStatment element behaves.
  • Response
    This interface defines how the object representing a SAML1 Response element behaves.
  • AudienceRestrictionCondition,
  • Conditions,
  • NameIdentifier,
  • Subject,
  • Status,
  • StatusCode,
  • AuthorizationDecisionStatement,
  • ConfirmationMethod,
  • Request,
  • StatusMessage,
  • SubjectConfirmation,
  • AttributeQuery,
  • ResponseAbstractType,
  • SubjectLocality
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now