-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,397 changed files
with
148,860 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>eidas-commons</artifactId> | ||
<packaging>${mod.packaging.type}</packaging> | ||
<name>eIDAS Commons</name> | ||
<description> | ||
The EIDASCommons library provides beans, Java Interfaces and utility classes to integrate EidasNode and SAML | ||
Engine. | ||
</description> | ||
<parent> | ||
<groupId>eu.eidas</groupId> | ||
<artifactId>eidas-parent</artifactId> | ||
<version>2.3.1</version> | ||
<relativePath>../EIDAS-Parent/pom.xml</relativePath> | ||
</parent> | ||
<dependencies> | ||
<dependency> | ||
<groupId>eu.eidas</groupId> | ||
<artifactId>eidas-light-commons</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.bouncycastle</groupId> | ||
<artifactId>bcprov-jdk15on</artifactId> | ||
</dependency> | ||
<!-- Bouncy Castle --> | ||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>javax.servlet-api</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.owasp.encoder</groupId> | ||
<artifactId>encoder</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.hazelcast</groupId> | ||
<artifactId>hazelcast</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.hazelcast</groupId> | ||
<artifactId>hazelcast-wm</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.cache</groupId> | ||
<artifactId>cache-api</artifactId> | ||
<version>1.1.0</version> | ||
</dependency> | ||
<!-- TEST --> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>aopalliance</groupId> | ||
<artifactId>aopalliance</artifactId> | ||
<version>1.0</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<resources> | ||
<resource> | ||
<directory>${project.basedir}/src/main/resources</directory> | ||
</resource> | ||
</resources> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
<testResources> | ||
<testResource> | ||
<directory>src/test/resources</directory> | ||
<includes> | ||
<include>log4j.xml</include> | ||
<include>*.properties</include> | ||
</includes> | ||
</testResource> | ||
</testResources> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>metrics</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>cobertura-maven-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
<reporting> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>cobertura-maven-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</reporting> | ||
</project> |
71 changes: 71 additions & 0 deletions
71
...rces-2.3.1-MDSL/EIDAS-Commons/src/main/java/eu/eidas/auth/commons/AttributeConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright (c) 2019 by European Commission | ||
* | ||
* Licensed under the EUPL, Version 1.2 or - as soon they will be | ||
* approved by the European Commission - subsequent versions of the | ||
* EUPL (the "Licence"); | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* https://joinup.ec.europa.eu/page/eupl-text-11-12 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the Licence is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
* implied. | ||
* See the Licence for the specific language governing permissions and | ||
* limitations under the Licence. | ||
* | ||
*/ | ||
package eu.eidas.auth.commons; | ||
|
||
/** | ||
* This enum class contains all the eIDAS Node, Commons and Specific errors constant identifiers. | ||
*/ | ||
public enum AttributeConstants { | ||
|
||
/** | ||
* Represents the attribute's name index. | ||
*/ | ||
ATTR_NAME_INDEX(0), | ||
/** | ||
* Represents the attribute's type index. | ||
*/ | ||
ATTR_TYPE_INDEX(1), | ||
/** | ||
* Represents the attribute's value index. | ||
*/ | ||
ATTR_VALUE_INDEX(2), | ||
/** | ||
* Represents the attribute's status index. | ||
*/ | ||
ATTR_STATUS_INDEX(3), | ||
/** | ||
* Represents the number of allowed tuples. | ||
*/ | ||
NUMBER_TUPLES(4); | ||
|
||
/** | ||
* Represents the constant's value. | ||
*/ | ||
private final transient int attribute; | ||
|
||
/** | ||
* Solo Constructor. | ||
* | ||
* @param attr The Attribute Constant value. | ||
*/ | ||
AttributeConstants(final int attr) { | ||
|
||
this.attribute = attr; | ||
} | ||
|
||
/** | ||
* Return the Constant Value. | ||
* | ||
* @return The constant value. | ||
*/ | ||
public int intValue() { | ||
|
||
return attribute; | ||
} | ||
} |
Oops, something went wrong.