Commit ff278c60 authored by cdanger's avatar cdanger

Merge branch 'release/13.0.0'

parents 75d76939 5b284632
......@@ -2,6 +2,24 @@
All notable changes to this project are documented in this file following the [Keep a CHANGELOG](http://keepachangelog.com) conventions. This project adheres to [Semantic Versioning](http://semver.org).
## 13.0.0
### Changed
- Updated authzforce-ce-parent version: 7.1.0 -> 7.2.0:
- Changes dependency version: slf4j: 1.7.22 --> 1.7.25
- Changes build plugin versions:
- OWASP dependency-check plugin: 3.0.1 -> 3.0.2 (fix blocking bug #978 on their github)
- Copyright end year (2018) in license headers
- API interface/abstract class:
- `SimpleValue.BaseFactory` abstract class: new `getSupportedInputTypes()`
for simple attribute value factories to specify the input Java types
they support, i.e. that they can parse to AttributeValue, in order to help implement new
`AttributeValueFactoryRegistry#newAttributeValue/AttributeBag(...)` methods
- `AttributeValueFactoryRegistry` interface: new `newAttributeValue(Serializable)` and
`newAttributeBag(Collection<? extends Serializable>)` methods for creating `AttributeValue`/`AttributeBag` from raw Java
types without specifying a XACML datatype argument explicitly, but based on the input types supported by the simple AttributeValueFactories (of subtype `SimpleValue.BaseFactory`) in the registry, which info is provided by the `getSupportedInputTypes()` mentioned previously. This change contributes to the implementation of [authzforce-ce-core issue #10 on github](https://github.com/authzforce/core/issues/10).
- `X500NameValue` class: added constructor from X500Principal
## 12.1.0
### Changed
- Parent project: 7.0.0 -> 7.1.0
......
......@@ -3,10 +3,10 @@
<parent>
<groupId>org.ow2.authzforce</groupId>
<artifactId>authzforce-ce-parent</artifactId>
<version>7.1.0</version>
<version>7.2.0</version>
</parent>
<artifactId>authzforce-ce-core-pdp-api</artifactId>
<version>12.1.0</version>
<version>13.0.0</version>
<name>${project.groupId}:${project.artifactId}</name>
<description>AuthzForce - Core PDP API</description>
<url>${project.url}</url>
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......@@ -26,6 +26,8 @@ import java.util.Map.Entry;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.UnmarshallerHandler;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.transform.stream.StreamSource;
......@@ -51,6 +53,23 @@ import org.xml.sax.helpers.XMLFilterImpl;
*/
public final class XmlUtils
{
/**
* XML datatype factory for parsing XML-Schema-compliant date/time/duration values into Java types. DatatypeFactory's official javadoc does not say whether it is thread-safe. But bug report
* indicates it should be and has been so far: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6466177 Reusing the same instance matters for performance: https://www.java.net/node/666491 The
* alternative would be to use ThreadLocal to limit thread-safety issues in the future.
*/
public static final DatatypeFactory XML_TEMPORAL_DATATYPE_FACTORY;
static
{
try
{
XML_TEMPORAL_DATATYPE_FACTORY = DatatypeFactory.newInstance();
}
catch (final DatatypeConfigurationException e)
{
throw new RuntimeException("Error instantiating XML datatype factory for parsing strings corresponding to XML schema date/time/duration values into Java types", e);
}
}
/**
* Saxon configuration file for Attributes/Content XML parsing (into XDM data model) and AttributeSelector's XPath evaluation
......@@ -356,8 +375,8 @@ public final class XmlUtils
/**
* This is a bare implementation of namespace-filtering parser, i.e. the result {@link #getNamespacePrefixUriMap()} is always empty (no namespace-prefix mappings is returned). Therefore it can be
* used as a convenient replacement for {@link SAXBasedXmlnsFilteringParser} when no namespace-filtering is actually required but still a parser compliant with {@link XmlnsFilteringParser}
* for polymorphism purposes.
* used as a convenient replacement for {@link SAXBasedXmlnsFilteringParser} when no namespace-filtering is actually required but still a parser compliant with {@link XmlnsFilteringParser} for
* polymorphism purposes.
*
*/
public static final class NoXmlnsFilteringParser implements XmlnsFilteringParser
......@@ -403,7 +422,7 @@ public final class XmlUtils
return Collections.emptyMap();
}
}
/**
* (Namespace-filtering) XACML-to-JAXB parser factory
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
......
/**
* Copyright 2012-2017 Thales Services SAS.
* Copyright 2012-2018 Thales Services SAS.
*