test_class.declarator: PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAOJDgeiUFOERg6N2qUeLjkE7HDzg4h2m4hMG8WDYLhuAm6k2pq+1SkRDvisD67y2AvXXFz069Vw5TMDnpbmGpigEbdr+YT7As+YpVhxI1nSwTzzEAuL2Ywun1FNfOFAeBt6hzQ/veJ+rc3D3BSgjeY/yiZNen36T3BD8pi3HojErAgMBAAECgYBWmtpVqKCZSXfmkJvYy70GkNaNItLJ4L+14rlvhS+YzVBHo6iHps+nc3qNwnFwCQb3DH5TrIaP50rOp5wSeEyOWk7fOJeAwM4Vsc3d+av/Iu/WwNDyAFW3gGO19YvccfGvEbToMPtppOt47UDK26xfibCwUFwEGg0hGc0gcVQWMQJBAPl8YnETSjI0wZuaSdkUp2/FtHEAZa1yFPtPx7CVCpUG53frKOAx2t0N7AQ2vQUNPqOas8gDGr5O5J+l9tjOD0MCQQDoK+asMuMnSClm/RZRFIckcToFwjfgNQY/AKN31k705jJr+3+er3VlODL7dpnF0X2mVDjiXIp4hH9K0qfW+TP5AkAQOIMaAPwQ+Zcg684jXBFq1freYf06YrF0iYJdO8N9Xv6LsHFu6i7lsnMG7xwpCOxqrLNFrNX/S5fXvW2oOPWLAkEAiTu547tIjaWX42ph0JdDsoTC+Tht8rck9ASam3Evxo5y62UDcHbh+2yWphDaoBVOIgzSeuqcZtRasY2G7AjtcQJAEiXYeHB5+lancDDkBhH8KKdl1+FORRB9kJ4gxTwrjLwprWFjdatMb3O+xJGss+KnVUa/THRa5CRX4pHh93711Q=="
test_class.modifier: private static final
test_class.original_string: private static final String PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAOJDgeiUFOERg6N2qUeLjkE7HDzg4h2m4hMG8WDYLhuAm6k2pq+1SkRDvisD67y2AvXXFz069Vw5TMDnpbmGpigEbdr+YT7As+YpVhxI1nSwTzzEAuL2Ywun1FNfOFAeBt6hzQ/veJ+rc3D3BSgjeY/yiZNen36T3BD8pi3HojErAgMBAAECgYBWmtpVqKCZSXfmkJvYy70GkNaNItLJ4L+14rlvhS+YzVBHo6iHps+nc3qNwnFwCQb3DH5TrIaP50rOp5wSeEyOWk7fOJeAwM4Vsc3d+av/Iu/WwNDyAFW3gGO19YvccfGvEbToMPtppOt47UDK26xfibCwUFwEGg0hGc0gcVQWMQJBAPl8YnETSjI0wZuaSdkUp2/FtHEAZa1yFPtPx7CVCpUG53frKOAx2t0N7AQ2vQUNPqOas8gDGr5O5J+l9tjOD0MCQQDoK+asMuMnSClm/RZRFIckcToFwjfgNQY/AKN31k705jJr+3+er3VlODL7dpnF0X2mVDjiXIp4hH9K0qfW+TP5AkAQOIMaAPwQ+Zcg684jXBFq1freYf06YrF0iYJdO8N9Xv6LsHFu6i7lsnMG7xwpCOxqrLNFrNX/S5fXvW2oOPWLAkEAiTu547tIjaWX42ph0JdDsoTC+Tht8rck9ASam3Evxo5y62UDcHbh+2yWphDaoBVOIgzSeuqcZtRasY2G7AjtcQJAEiXYeHB5+lancDDkBhH8KKdl1+FORRB9kJ4gxTwrjLwprWFjdatMb3O+xJGss+KnVUa/THRa5CRX4pHh93711Q==";
test_class.type: String
test_class.var_name: PRIVATE_KEY
test_class.declarator: PUBLIC_CERT = "MIICXjCCAcegAwIBAgIBADANBgkqhkiG9w0BAQ0FADBLMQswCQYDVQQGEwJubzERMA8GA1UECAwIVmVzdGZvbGQxEzARBgNVBAoMCkV4YW1wbGVPcmcxFDASBgNVBAMMC2V4YW1wbGUub3JnMCAXDTE3MDIyNzEwNTY0MFoYDzIxMTcwMjAzMTA1NjQwWjBLMQswCQYDVQQGEwJubzERMA8GA1UECAwIVmVzdGZvbGQxEzARBgNVBAoMCkV4YW1wbGVPcmcxFDASBgNVBAMMC2V4YW1wbGUub3JnMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDiQ4HolBThEYOjdqlHi45BOxw84OIdpuITBvFg2C4bgJupNqavtUpEQ74rA+u8tgL11xc9OvVcOUzA56W5hqYoBG3a/mE+wLPmKVYcSNZ0sE88xALi9mMLp9RTXzhQHgbeoc0P73ifq3Nw9wUoI3mP8omTXp9+k9wQ/KYtx6IxKwIDAQABo1AwTjAdBgNVHQ4EFgQUzWjvSL0O2V2B2N9G1qARQiVgv3QwHwYDVR0jBBgwFoAUzWjvSL0O2V2B2N9G1qARQiVgv3QwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQ0FAAOBgQBgvKTTcLGlF0KvnIGxkzdaFeYewQtsQZHgnUt+JGKge0CyUU+QPVFhrH19b7fjKeykq/avm/2hku4mKaPyRYpvU9Gm+ARz67rs/vr0ZgJFk00TGI6ssGhdFd7iCptuIh5lEvWk1hD5LzThOI3isq0gK2tTbhafQOkKa45IwbOQ8Q=="
test_class.modifier: private static final
test_class.original_string: private static final String PUBLIC_CERT = "MIICXjCCAcegAwIBAgIBADANBgkqhkiG9w0BAQ0FADBLMQswCQYDVQQGEwJubzERMA8GA1UECAwIVmVzdGZvbGQxEzARBgNVBAoMCkV4YW1wbGVPcmcxFDASBgNVBAMMC2V4YW1wbGUub3JnMCAXDTE3MDIyNzEwNTY0MFoYDzIxMTcwMjAzMTA1NjQwWjBLMQswCQYDVQQGEwJubzERMA8GA1UECAwIVmVzdGZvbGQxEzARBgNVBAoMCkV4YW1wbGVPcmcxFDASBgNVBAMMC2V4YW1wbGUub3JnMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDiQ4HolBThEYOjdqlHi45BOxw84OIdpuITBvFg2C4bgJupNqavtUpEQ74rA+u8tgL11xc9OvVcOUzA56W5hqYoBG3a/mE+wLPmKVYcSNZ0sE88xALi9mMLp9RTXzhQHgbeoc0P73ifq3Nw9wUoI3mP8omTXp9+k9wQ/KYtx6IxKwIDAQABo1AwTjAdBgNVHQ4EFgQUzWjvSL0O2V2B2N9G1qARQiVgv3QwHwYDVR0jBBgwFoAUzWjvSL0O2V2B2N9G1qARQiVgv3QwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQ0FAAOBgQBgvKTTcLGlF0KvnIGxkzdaFeYewQtsQZHgnUt+JGKge0CyUU+QPVFhrH19b7fjKeykq/avm/2hku4mKaPyRYpvU9Gm+ARz67rs/vr0ZgJFk00TGI6ssGhdFd7iCptuIh5lEvWk1hD5LzThOI3isq0gK2tTbhafQOkKa45IwbOQ8Q==";
test_class.type: String
test_class.var_name: PUBLIC_CERT
test_class.declarator: parser
test_class.modifier: private
test_class.original_string: private SAMLParser parser;
test_class.type: SAMLParser
test_class.var_name: parser
test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.file: saml-core/src/test/java/org/keycloak/saml/processing/core/parsers/saml/SAMLParserTest.java
test_class.identifier: SAMLParserTest
test_case.body: @Test
      public void testSaml20AssertionsAnyTypeAttributeValue() throws Exception {
          AssertionType assertion = assertParsed("saml20-assertion-anytype-attribute-value.xml", AssertionType.class);
  
          AttributeStatementType attributeStatementType = assertion.getAttributeStatements().iterator().next();
          assertThat(attributeStatementType.getAttributes(), hasSize(5));
  
          for (AttributeStatementType.ASTChoiceType choiceType: attributeStatementType.getAttributes()) {
              AttributeType attr = choiceType.getAttribute();
              String attrName = attr.getName();
              Object value = attr.getAttributeValue().get(0);
              // test selected attributes
              switch (attrName) {
                  case "attr:type:string":
                      assertThat(value, is((Object) "CITIZEN"));
                      break;
                  case "attr:notype:string":
                      assertThat(value, instanceOf(String.class));
                      assertThat(value, is((Object) "CITIZEN"));
                      break;
                  case "attr:notype:element":
                      assertThat(value, instanceOf(String.class));
                      assertThat((String) value, containsString("hospitaal x"));
                      value = attr.getAttributeValue().get(1);
                      assertThat(value, instanceOf(String.class));
                      assertThat((String) value, containsString("hopital x"));
                      break;
                  case "founded":
                      assertThat(value, is((Object) XMLTimeUtil.parse("2002-05-30T09:30:10-06:00")));
                      break;
                  case "expanded":
                      assertThat(value, is((Object) XMLTimeUtil.parse("2002-06-30")));
                      break;
                  default:
                      break;
              }
          }
      }
test_case.class_method_signature: SAMLParserTest.testSaml20AssertionsAnyTypeAttributeValue()
test_case.full_signature: @Test public void testSaml20AssertionsAnyTypeAttributeValue()
test_case.identifier: testSaml20AssertionsAnyTypeAttributeValue
test_case.invocations: assertParsed next iterator getAttributeStatements assertThat getAttributes hasSize getAttributes getAttribute getName get getAttributeValue assertThat is assertThat instanceOf assertThat is assertThat instanceOf assertThat containsString get getAttributeValue assertThat instanceOf assertThat containsString assertThat is parse assertThat is parse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSaml20AssertionsAnyTypeAttributeValue()
focal_class.declarator: SAML_11_RESPONSE_PARSER = new SAML11ResponseParser()
focal_class.modifier: private static final
focal_class.original_string: private static final SAML11ResponseParser SAML_11_RESPONSE_PARSER = new SAML11ResponseParser();
focal_class.type: SAML11ResponseParser
focal_class.var_name: SAML_11_RESPONSE_PARSER
focal_class.declarator: SAML_11_REQUEST_PARSER = new SAML11RequestParser()
focal_class.modifier: private static final
focal_class.original_string: private static final SAML11RequestParser SAML_11_REQUEST_PARSER = new SAML11RequestParser();
focal_class.type: SAML11RequestParser
focal_class.var_name: SAML_11_REQUEST_PARSER
focal_class.declarator: SAML_11_ASSERTION = new QName(SAML11Constants.ASSERTION_11_NSURI, JBossSAMLConstants.ASSERTION.get())
focal_class.modifier: private static final
focal_class.original_string: private static final QName SAML_11_ASSERTION = new QName(SAML11Constants.ASSERTION_11_NSURI, JBossSAMLConstants.ASSERTION.get());
focal_class.type: QName
focal_class.var_name: SAML_11_ASSERTION
focal_class.declarator: SAML_11_ENCRYPTED_ASSERTION = new QName(SAML11Constants.ASSERTION_11_NSURI, JBossSAMLConstants.ENCRYPTED_ASSERTION.get())
focal_class.modifier: private static final
focal_class.original_string: private static final QName SAML_11_ENCRYPTED_ASSERTION = new QName(SAML11Constants.ASSERTION_11_NSURI, JBossSAMLConstants.ENCRYPTED_ASSERTION.get());
focal_class.type: QName
focal_class.var_name: SAML_11_ENCRYPTED_ASSERTION
focal_class.declarator: SAML_11_RESPONSE = new QName(SAML11Constants.ASSERTION_11_NSURI, JBossSAMLConstants.RESPONSE__PROTOCOL.get())
focal_class.modifier: private static final
focal_class.original_string: private static final QName SAML_11_RESPONSE = new QName(SAML11Constants.ASSERTION_11_NSURI, JBossSAMLConstants.RESPONSE__PROTOCOL.get());
focal_class.type: QName
focal_class.var_name: SAML_11_RESPONSE
focal_class.declarator: SAML_11_REQUEST = new QName(SAML11Constants.ASSERTION_11_NSURI, JBossSAMLConstants.REQUEST.get())
focal_class.modifier: private static final
focal_class.original_string: private static final QName SAML_11_REQUEST = new QName(SAML11Constants.ASSERTION_11_NSURI, JBossSAMLConstants.REQUEST.get());
focal_class.type: QName
focal_class.var_name: SAML_11_REQUEST
focal_class.declarator: PARSERS = new HashMap<>()
focal_class.modifier: private static final
focal_class.original_string: private static final Map<QName, ParserFactory> PARSERS = new HashMap<>();
focal_class.type: Map<QName, ParserFactory>
focal_class.var_name: PARSERS
focal_class.declarator: INSTANCE = new SAMLParser()
focal_class.modifier: private static final
focal_class.original_string: private static final SAMLParser INSTANCE = new SAMLParser();
focal_class.type: SAMLParser
focal_class.var_name: INSTANCE
focal_class.file: saml-core/src/main/java/org/keycloak/saml/processing/core/parsers/saml/SAMLParser.java
focal_class.identifier: SAMLParser
focal_class.class_method_signature: SAMLParser.getInstance()
focal_class.full_signature: public static SAMLParser getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: SAMLParser
focal_class.signature: SAMLParser getInstance()
focal_class.class_method_signature: SAMLParser.SAMLParser()
focal_class.full_signature: protected  SAMLParser()
focal_class.identifier: SAMLParser
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  SAMLParser()
focal_class.class_method_signature: SAMLParser.parse(XMLEventReader xmlEventReader)
focal_class.full_signature: @Override public Object parse(XMLEventReader xmlEventReader)
focal_class.identifier: parse
focal_class.modifiers: @Override public
focal_class.parameters: (XMLEventReader xmlEventReader)
focal_class.return: Object
focal_class.signature: Object parse(XMLEventReader xmlEventReader)
focal_class.superclass: extends AbstractParser
focal_method.body: @Override
      public Object parse(XMLEventReader xmlEventReader) throws ParsingException {
          while (xmlEventReader.hasNext()) {
              XMLEvent xmlEvent = StaxParserUtil.peek(xmlEventReader);
  
              if (xmlEvent instanceof StartElement) {
                  StartElement startElement = (StartElement) xmlEvent;
                  final QName name = startElement.getName();
  
                  ParserFactory pf = PARSERS.get(name);
                  if (pf == null) {
                      throw logger.parserException(new RuntimeException(ErrorCodes.UNKNOWN_START_ELEMENT + name + "::location="
                              + startElement.getLocation()));
                  }
  
                  return pf.create().parse(xmlEventReader);
              }
  
              StaxParserUtil.getNextEvent(xmlEventReader);
          }
  
          throw new RuntimeException(ErrorCodes.FAILED_PARSING + "SAML Parsing has failed");
      }
focal_method.class_method_signature: SAMLParser.parse(XMLEventReader xmlEventReader)
focal_method.full_signature: @Override public Object parse(XMLEventReader xmlEventReader)
focal_method.identifier: parse
focal_method.invocations: hasNext peek getName get parserException getLocation parse create getNextEvent
focal_method.modifiers: @Override public
focal_method.parameters: (XMLEventReader xmlEventReader)
focal_method.return: Object
focal_method.signature: Object parse(XMLEventReader xmlEventReader)