- java.lang.Object
-
- swim.api.auth.AbstractAuthenticator
-
- All Implemented Interfaces:
Authenticator
,IpInterface
,Log
- Direct Known Subclasses:
GoogleIdAuthenticator
,OpenIdAuthenticator
public abstract class AbstractAuthenticator extends Object implements Authenticator, IpInterface, Log
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthenticatorContext
context
-
Constructor Summary
Constructors Constructor Description AbstractAuthenticator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract PolicyDirective<Identity>
authenticate(Credentials credentials)
AuthenticatorContext
authenticatorContext()
IpServiceRef
bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
IpServiceRef
bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
IpSocketRef
connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
IpSocketRef
connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
void
debug(Object message)
Logs a debug-level message.void
didFail(Throwable error)
void
didStart()
void
didStop()
void
error(Object message)
Logs an error-level message.void
fail(Object message)
Logs an fail-level message.void
info(Object message)
Logs an info-level message.IpSettings
ipSettings()
Schedule
schedule()
void
setAuthenticatorContext(AuthenticatorContext context)
Stage
stage()
void
trace(Object message)
Logs a trace-level message.void
warn(Object message)
Logs a warn-level message.void
willStart()
void
willStop()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.io.IpInterface
bindTcp, bindTcp, bindTcp, bindTls, bindTls, bindTls, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls
-
-
-
-
Field Detail
-
context
protected AuthenticatorContext context
-
-
Method Detail
-
authenticatorContext
public AuthenticatorContext authenticatorContext()
- Specified by:
authenticatorContext
in interfaceAuthenticator
-
setAuthenticatorContext
public void setAuthenticatorContext(AuthenticatorContext context)
- Specified by:
setAuthenticatorContext
in interfaceAuthenticator
-
schedule
public Schedule schedule()
-
stage
public Stage stage()
-
ipSettings
public IpSettings ipSettings()
- Specified by:
ipSettings
in interfaceIpInterface
-
bindTcp
public IpServiceRef bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
- Specified by:
bindTcp
in interfaceIpInterface
-
bindTls
public IpServiceRef bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
- Specified by:
bindTls
in interfaceIpInterface
-
connectTcp
public IpSocketRef connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
- Specified by:
connectTcp
in interfaceIpInterface
-
connectTls
public IpSocketRef connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
- Specified by:
connectTls
in interfaceIpInterface
-
authenticate
public abstract PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfaceAuthenticator
-
trace
public void trace(Object message)
Description copied from interface:Log
Logs a trace-level message.
-
debug
public void debug(Object message)
Description copied from interface:Log
Logs a debug-level message.
-
info
public void info(Object message)
Description copied from interface:Log
Logs an info-level message.
-
warn
public void warn(Object message)
Description copied from interface:Log
Logs a warn-level message.
-
error
public void error(Object message)
Description copied from interface:Log
Logs an error-level message.
-
fail
public void fail(Object message)
Description copied from interface:Log
Logs an fail-level message.
-
willStart
public void willStart()
- Specified by:
willStart
in interfaceAuthenticator
-
didStart
public void didStart()
- Specified by:
didStart
in interfaceAuthenticator
-
willStop
public void willStop()
- Specified by:
willStop
in interfaceAuthenticator
-
didStop
public void didStop()
- Specified by:
didStop
in interfaceAuthenticator
-
didFail
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceAuthenticator
-
-