public class AllowedPeerAuthenticator extends Object implements io.dropwizard.auth.Authenticator<io.dropwizard.auth.basic.BasicCredentials,Peer>
Implementation of a DropWizard Authenticator interface that forces the our callers to authenticate with us via Basic Auth.
| Constructor and Description |
|---|
AllowedPeerAuthenticator(PeerDAO peerDAO) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<Peer> |
authenticate(io.dropwizard.auth.basic.BasicCredentials credentials) |
public AllowedPeerAuthenticator(PeerDAO peerDAO)
public com.google.common.base.Optional<Peer> authenticate(io.dropwizard.auth.basic.BasicCredentials credentials) throws io.dropwizard.auth.AuthenticationException
authenticate in interface io.dropwizard.auth.Authenticator<io.dropwizard.auth.basic.BasicCredentials,Peer>io.dropwizard.auth.AuthenticationExceptionCopyright © 2015. All rights reserved.