T
- the principal type.public class BasicAuthProvider<T> extends Object implements com.sun.jersey.spi.inject.InjectableProvider<io.dropwizard.auth.Auth,com.sun.jersey.api.model.Parameter>
Constructor and Description |
---|
BasicAuthProvider(Authenticator<io.dropwizard.auth.basic.BasicCredentials,T> authenticator,
String realm)
Creates a new BasicAuthProvider 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 BasicAuthProvider(Authenticator<io.dropwizard.auth.basic.BasicCredentials,T> authenticator, String realm)
Authenticator
and realm.authenticator
- the authenticator which will take the BasicCredentials
and
convert them into instances of T
realm
- 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.