T - the principal typepublic class OAuthProvider<T> extends Object implements com.sun.jersey.spi.inject.InjectableProvider<io.dropwizard.auth.Auth,com.sun.jersey.api.model.Parameter>
| Constructor and Description |
|---|
OAuthProvider(Authenticator<String,T> authenticator,
String realm)
Creates a new OAuthProvider with the given
Authenticator and realm. |
| Modifier and Type | Method and Description |
|---|---|
com.sun.jersey.spi.inject.Injectable<?> |
getInjectable(com.sun.jersey.core.spi.component.ComponentContext ic,
io.dropwizard.auth.Auth a,
com.sun.jersey.api.model.Parameter c) |
com.sun.jersey.core.spi.component.ComponentScope |
getScope() |
public OAuthProvider(Authenticator<String,T> authenticator, String realm)
Authenticator and realm.authenticator - the authenticator which will take the OAuth2 bearer token and convert
them into instances of Trealm - the name of the authentication realmpublic com.sun.jersey.core.spi.component.ComponentScope getScope()
getScope in interface com.sun.jersey.spi.inject.InjectableProvider<io.dropwizard.auth.Auth,com.sun.jersey.api.model.Parameter>public com.sun.jersey.spi.inject.Injectable<?> getInjectable(com.sun.jersey.core.spi.component.ComponentContext ic,
io.dropwizard.auth.Auth a,
com.sun.jersey.api.model.Parameter c)
getInjectable in interface com.sun.jersey.spi.inject.InjectableProvider<io.dropwizard.auth.Auth,com.sun.jersey.api.model.Parameter>Copyright © 2014. All rights reserved.