Class ShiroAuthenticationFeature
- java.lang.Object
-
- org.apache.aries.jax.rs.shiro.authc.impl.ShiroAuthenticationFeature
-
- All Implemented Interfaces:
javax.ws.rs.core.Feature
public class ShiroAuthenticationFeature extends Object implements javax.ws.rs.core.Feature
This type adds support for establishing Shiro Authentication in a JAX-RS container using native JAX-RS features, rather than relying on an external Servlet Container. As a result some common features of the ShiroFilter are not supported, but native JAX-RS containers (i.e. ones that don't support Servlets) are able to be used.Where possible we reuse types from the
ShiroFeature
, and where these overlap with types used in authorization we must register carefully, as it is not allowed to register the same extension twice. Also the ShiroFeature does not make correct use of priorities when registering. This Feature therefore:- Avoids duplicate registrations with extension types that are also used in authorization.
- Uses priorities to indicate that these are authentication extensions
-
-
Field Summary
Fields Modifier and Type Field Description static String
SESSION_COOKIE_NAME
-
Constructor Summary
Constructors Constructor Description ShiroAuthenticationFeature(List<org.apache.shiro.realm.Realm> realms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
configure(javax.ws.rs.core.FeatureContext fc)
-
-
-
Field Detail
-
SESSION_COOKIE_NAME
public static final String SESSION_COOKIE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShiroAuthenticationFeature
public ShiroAuthenticationFeature(List<org.apache.shiro.realm.Realm> realms)
-
-