Tabnine Logo
AttributeStatement.getAttributes
Code IndexAdd Tabnine to your IDE (free)

How to use
getAttributes
method
in
org.opensaml.saml.saml1.core.AttributeStatement

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

origin: org.opensaml/opensaml-saml-impl

  /** {@inheritDoc} */
  protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
      throws UnmarshallingException {

    AttributeStatement attributeStatement = (AttributeStatement) parentSAMLObject;

    if (childSAMLObject instanceof Attribute) {
      attributeStatement.getAttributes().add((Attribute) childSAMLObject);
    } else {
      super.processChildElement(parentSAMLObject, childSAMLObject);
    }
  }
}
origin: apache/cxf

  private boolean findClaimInAssertion(org.opensaml.saml.saml1.core.Assertion assertion, URI claimURI) {
    List<org.opensaml.saml.saml1.core.AttributeStatement> attributeStatements =
      assertion.getAttributeStatements();
    if (attributeStatements == null || attributeStatements.isEmpty()) {
      return false;
    }

    for (org.opensaml.saml.saml1.core.AttributeStatement statement : attributeStatements) {

      List<org.opensaml.saml.saml1.core.Attribute> attributes = statement.getAttributes();
      for (org.opensaml.saml.saml1.core.Attribute attribute : attributes) {

        URI attributeNamespace = URI.create(attribute.getAttributeNamespace());
        String desiredRole = attributeNamespace.relativize(claimURI).toString();
        if (attribute.getAttributeName().equals(desiredRole)
          && attribute.getAttributeValues() != null && !attribute.getAttributeValues().isEmpty()) {
          return true;
        }
      }
    }
    return false;
  }
}
origin: org.apache.cxf/cxf-rt-ws-security

  private boolean findClaimInAssertion(org.opensaml.saml.saml1.core.Assertion assertion, URI claimURI) {
    List<org.opensaml.saml.saml1.core.AttributeStatement> attributeStatements =
      assertion.getAttributeStatements();
    if (attributeStatements == null || attributeStatements.isEmpty()) {
      return false;
    }

    for (org.opensaml.saml.saml1.core.AttributeStatement statement : attributeStatements) {

      List<org.opensaml.saml.saml1.core.Attribute> attributes = statement.getAttributes();
      for (org.opensaml.saml.saml1.core.Attribute attribute : attributes) {

        URI attributeNamespace = URI.create(attribute.getAttributeNamespace());
        String desiredRole = attributeNamespace.relativize(claimURI).toString();
        if (attribute.getAttributeName().equals(desiredRole)
          && attribute.getAttributeValues() != null && !attribute.getAttributeValues().isEmpty()) {
          return true;
        }
      }
    }
    return false;
  }
}
origin: org.apache.wss4j/wss4j-ws-security-policy-stax

  protected String findClaimInAssertion(org.opensaml.saml.saml1.core.Assertion assertion, URI claimURI) {
    List<org.opensaml.saml.saml1.core.AttributeStatement> attributeStatements =
        assertion.getAttributeStatements();
    if (attributeStatements == null || attributeStatements.isEmpty()) {
      return "Attribute " + claimURI + " not found in the SAMLAssertion";
    }

    for (org.opensaml.saml.saml1.core.AttributeStatement statement : attributeStatements) {

      List<org.opensaml.saml.saml1.core.Attribute> attributes = statement.getAttributes();
      for (org.opensaml.saml.saml1.core.Attribute attribute : attributes) {

        URI attributeNamespace = URI.create(attribute.getAttributeNamespace());
        String desiredRole = attributeNamespace.relativize(claimURI).toString();
        if (attribute.getAttributeName().equals(desiredRole)
            && attribute.getAttributeValues() != null && !attribute.getAttributeValues().isEmpty()) {
          return null;
        }
      }
    }
    return "Attribute " + claimURI + " not found in the SAMLAssertion";
  }
}
origin: net.shibboleth.idp/idp-saml-impl

statement.getAttributes().addAll(encodedAttributes);
return statement;
origin: org.jasig.cas/cas-server-support-saml

  attribute.getAttributeValues().add(newAttributeValue(e.getValue(), AttributeValue.DEFAULT_ELEMENT_NAME));
attrStatement.getAttributes().add(attribute);
origin: apache/cxf

List<org.opensaml.saml.saml1.core.Attribute> attributes = statement.getAttributes();
for (org.opensaml.saml.saml1.core.Attribute attribute : attributes) {
  if (LOG.isLoggable(Level.FINEST)) {
origin: org.apache.cxf.services.sts/cxf-services-sts-core

List<org.opensaml.saml.saml1.core.Attribute> attributes = statement.getAttributes();
for (org.opensaml.saml.saml1.core.Attribute attribute : attributes) {
  if (LOG.isLoggable(Level.FINEST)) {
origin: org.apereo.cas/cas-server-support-wsfederation

assertion.getAttributeStatements().stream().flatMap(attributeStatement -> attributeStatement.getAttributes().stream()).forEach(item -> {
  LOGGER.debug("Processed attribute: [{}]", item.getAttributeName());
  final List<Object> itemList = item.getAttributeValues().stream()
origin: org.apache.wss4j/wss4j-ws-security-common

    attributeValues
  );
attributeStatement.getAttributes().add(samlAttribute);
origin: org.jasig.cas/cas-server-support-wsfederation

for (final Attribute item : attributeStatement.getAttributes()) {
  LOGGER.debug("Processed attribute: {}", item.getAttributeName());
origin: net.shibboleth.idp/idp-cas-impl

  attribute.getAttributeValues().add(newAttributeValue(value));
attrStatement.getAttributes().add(attribute);
origin: apache/cxf

for (org.opensaml.saml.saml1.core.AttributeStatement attributeStatement
  : wrapper.getSaml1().getAttributeStatements()) {
  for (org.opensaml.saml.saml1.core.Attribute attribute : attributeStatement.getAttributes()) {
    if ("ActAs".equals(attribute.getAttributeName())) {
      for (XMLObject attributeValue : attribute.getAttributeValues()) {
origin: org.apache.cxf.services.sts/cxf-services-sts-core

for (org.opensaml.saml.saml1.core.AttributeStatement attributeStatement
  : wrapper.getSaml1().getAttributeStatements()) {
  for (org.opensaml.saml.saml1.core.Attribute attribute : attributeStatement.getAttributes()) {
    if ("ActAs".equals(attribute.getAttributeName())) {
      for (XMLObject attributeValue : attribute.getAttributeValues()) {
origin: apache/cxf

for (org.opensaml.saml.saml1.core.Attribute atr : statement.getAttributes()) {
  SAMLClaim claim = new SAMLClaim();
org.opensaml.saml.saml1.coreAttributeStatementgetAttributes

Javadoc

Get all the subsiduary Attribute elements.

Popular methods of AttributeStatement

  • getSubject
  • setSubject
  • getElementQName

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • CodeWhisperer alternatives
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