@Provider @Priority(value=1000) public class OAuthFilter extends Object implements ContainerRequestFilter
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_ROLE
The admin role.
|
static String |
CONFIG_AUTH_ADMIN_USERS
The configuration key controlling the list of of admin WebID values.
|
static String |
CONFIG_AUTH_OAUTH_JWK_URL
The configuration key controlling the OAuth JWK URL.
|
static String |
CONFIG_AUTH_OAUTH_KEYSTORE_CREDENTIALS
The configuration key controlling the OAuth Keystore credentials.
|
static String |
CONFIG_AUTH_OAUTH_KEYSTORE_IDS
The configuration key controlling the OAuth Keystore ids.
|
static String |
CONFIG_AUTH_OAUTH_KEYSTORE_PATH
The configuration key controlling the OAuth Keystore path.
|
static String |
CONFIG_AUTH_OAUTH_SHARED_SECRET
The configuration key controlling the OAuth HMAC shared secret.
|
static String |
CONFIG_AUTH_REALM
The configuration key controlling the realm used in a WWW-Authenticate header, or 'trellis' by default.
|
static String |
SCHEME
The authentication scheme used by this module.
|
Constructor and Description |
---|
OAuthFilter()
Create an OAuth filter.
|
OAuthFilter(Authenticator authenticator)
Create an OAuth filter with a defined authenticator.
|
OAuthFilter(Authenticator authenticator,
String realm,
Set<String> admins)
Create an OAuth filter with a defined authenticator.
|
Modifier and Type | Method and Description |
---|---|
void |
filter(ContainerRequestContext requestContext) |
public static final String CONFIG_AUTH_ADMIN_USERS
public static final String CONFIG_AUTH_REALM
public static final String CONFIG_AUTH_OAUTH_KEYSTORE_PATH
public static final String CONFIG_AUTH_OAUTH_KEYSTORE_CREDENTIALS
public static final String CONFIG_AUTH_OAUTH_KEYSTORE_IDS
public static final String CONFIG_AUTH_OAUTH_SHARED_SECRET
public static final String CONFIG_AUTH_OAUTH_JWK_URL
public static final String SCHEME
public static final String ADMIN_ROLE
@Inject public OAuthFilter()
public OAuthFilter(Authenticator authenticator)
authenticator
- the authenticatorpublic OAuthFilter(Authenticator authenticator, String realm, Set<String> admins)
authenticator
- the authenticatorrealm
- the authentication realmadmins
- the admin userspublic void filter(ContainerRequestContext requestContext)
filter
in interface ContainerRequestFilter