Commit 9b4034a3 authored by cdanger's avatar cdanger

- Upgraded managed dependency versions:

  - Spring: 4.3.6 -> 4.3.12 
  - CXF: 3.1.10 -> 3.2.1
  - JAX-RS (javax.ws.rs-api): 2.0.1 -> 2.1
  - Added org.json:json and org.everit.json.schema to dep management
- Upgraded OWASP dependency-check maven plugin: 1.4.4.1 -> 3.0.1
- Added XacmlStatusCode enum class for standard XACML 3.0 status codes
parent 237209e4
......@@ -23,8 +23,8 @@
<jaxb2-value-constructor.version>3.0</jaxb2-value-constructor.version>
<slf4j.version>1.7.22</slf4j.version>
<!-- This version must match the Spring version used by 'logback-ext-spring' in dependencyManagement. -->
<spring.version>4.3.6.RELEASE</spring.version>
<cxf.version>3.1.10</cxf.version>
<spring.version>4.3.12.RELEASE</spring.version>
<cxf.version>3.2.1</cxf.version>
</properties>
<url>${project.url}</url>
<inceptionYear>2012</inceptionYear>
......@@ -128,7 +128,7 @@
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<!-- Version must match version used by cxf-rt-frontend-jaxrs dependency below -->
<version>2.0.1</version>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
......@@ -160,6 +160,17 @@
<artifactId>guava</artifactId>
<version>21.0</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20170516</version>
</dependency>
<dependency>
<groupId>com.github.everit-org.json-schema</groupId>
<artifactId>org.everit.json.schema</artifactId>
<!-- This version must use the version of artifact org.json/json specified above. -->
<version>1.6.0</version>
</dependency>
<!-- /Third party dependencies -->
<!-- Common AuthZForce CE dependencies. Only child modules here (see <modules>). -->
<dependency>
......@@ -238,8 +249,7 @@
<!-- Consider combining with Red Hat Victims and OSS Index. More info on Victims vs. Dependency-check: https://bugzilla.redhat.com/show_bug.cgi?id=1388712 -->
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<!-- 1.4.4.1 fixes issue in 1.4.4: https://github.com/jeremylong/DependencyCheck/issues/617 -->
<version>1.4.4.1</version>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
......
/**
* Copyright 2012-2017 Thales Services SAS.
*
* This file is part of AuthzForce CE.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
*
*/
package org.ow2.authzforce.xacml.identifiers;
/**
* XACML Resource scopes, as defined in XACML v3.0 Multiple Decision Profile Version 1.0, §6.1. The actual value
*
*/
public enum XacmlStatusCode
{
/**
* Standard identifier for the OK status
*/
OK("urn:oasis:names:tc:xacml:1.0:status:ok"),
/**
* Standard identifier for the Missing Attribute status
*/
MISSING_ATTRIBUTE("urn:oasis:names:tc:xacml:1.0:status:missing-attribute"),
/**
* Standard identifier for the Syntax Error status
*/
SYNTAX_ERROR("urn:oasis:names:tc:xacml:1.0:status:syntax-error"),
/**
* Standard identifier for the Processing Error status
*/
PROCESSING_ERROR("urn:oasis:names:tc:xacml:1.0:status:processing-error");
private final String value;
/**
* Get standard identifier (string), e.g. ""urn:oasis:names:tc:xacml:1.0:status:ok"" for {@link #OK}
*
* @return identifier
*/
public String value()
{
return value;
}
private XacmlStatusCode(final String v)
{
value = v;
}
/**
* Get constant from identifier
*
* @param id
* identifier
* @return status code enum
*/
public static XacmlStatusCode fromValue(final String id)
{
for (final XacmlStatusCode c : XacmlStatusCode.values())
{
if (c.value.equals(id))
{
return c;
}
}
throw new IllegalArgumentException(id);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment