Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#156 Updated CDI dependency to Jakarta version #164

Merged
merged 2 commits into from
Feb 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,10 @@
<version>4.0.0-RC1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.ejb</groupId>
<artifactId>jakarta.ejb-api</artifactId>
<version>3.2.6</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<version>2.0.2</version>
<version>3.0.0-M1</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.security.Principal;
import java.util.Set;

import javax.ejb.SessionContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

Expand Down Expand Up @@ -78,7 +77,7 @@ public interface SecurityContext {
* Should code in either such Jakarta Servlet or Jakarta Enterprise Bean wish to take such mapped (aka referenced, linked)
* roles into account, the facilities for that specific container should be used instead. For instance for Servlet that
* would be {@link HttpServletRequest#isUserInRole(String)} and for Jakarta Enterprise Beans that would be
* {@link SessionContext#isCallerInRole(String)}.
* {@link jakarta.ejb.SessionContext#isCallerInRole(String)}.
*
*
* @param role a <code>String</code> specifying the name of the logical application role
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,24 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.enterprise.util.Nonbinding;
import jakarta.enterprise.util.Nonbinding;

import jakarta.security.enterprise.SecurityContext;

/**
* Annotation used to define a container authentication mechanism that implements
* authentication resembling Servlet FORM authentication (Servlet spec 13.6.3).
* <p>
* Instead of posting back to a predefined action to continue the authentication dialog
* (Servlet spec 13.6.3 step 3), this variant depends on the application calling
* <p>
* Instead of posting back to a predefined action to continue the authentication dialog
* (Servlet spec 13.6.3 step 3), this variant depends on the application calling
* {@link SecurityContext#authenticate(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse, jakarta.security.enterprise.authentication.mechanism.http.AuthenticationParameters)}
*
*
*/
@Retention(RUNTIME)
@Target(TYPE)
public @interface CustomFormAuthenticationMechanismDefinition {

@Nonbinding
LoginToContinue loginToContinue();

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.enterprise.util.Nonbinding;
import jakarta.enterprise.util.Nonbinding;

/**
* Annotation used to define a container authentication mechanism that implements
Expand All @@ -33,8 +33,8 @@
@Retention(RUNTIME)
@Target(TYPE)
public @interface FormAuthenticationMechanismDefinition {

@Nonbinding
LoginToContinue loginToContinue();

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.enterprise.util.Nonbinding;
import jakarta.enterprise.util.Nonbinding;

import jakarta.interceptor.InterceptorBinding;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.enterprise.util.Nonbinding;
import jakarta.enterprise.util.Nonbinding;

import jakarta.el.ELProcessor;
import jakarta.interceptor.InterceptorBinding;
Expand Down