- java.lang.Object
-
- swim.api.auth.AbstractAuthenticator
-
- swim.auth.GoogleIdAuthenticator
-
- All Implemented Interfaces:
Authenticator
,HttpInterface
,IpInterface
,Log
public class GoogleIdAuthenticator extends AbstractAuthenticator implements HttpInterface
-
-
Field Summary
Fields Modifier and Type Field Description protected FingerTrieSeq<String>
audiences
protected HashTrieSet<String>
emails
protected HttpSettings
httpSettings
protected Uri
publicKeyUri
-
Fields inherited from class swim.api.auth.AbstractAuthenticator
context
-
-
Constructor Summary
Constructors Constructor Description GoogleIdAuthenticator(GoogleIdAuthenticatorDef authenticatorDef)
GoogleIdAuthenticator(FingerTrieSeq<String> audiences, HashTrieSet<String> emails, Uri publicKeyUri, HttpSettings httpSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEmail(String email)
FingerTrieSeq<String>
audiences()
PolicyDirective<Identity>
authenticate(Credentials credentials)
void
didStart()
HashTrieSet<String>
emails()
HttpSettings
httpSettings()
FingerTrieSeq<PublicKeyDef>
publicKeyDefs()
Uri
publicKeyUri()
void
refreshPublicKeys()
void
removeEmail(String email)
void
setPublicKeyDefs(FingerTrieSeq<PublicKeyDef> publicKeyDefs)
void
willStop()
-
Methods inherited from class swim.api.auth.AbstractAuthenticator
authenticatorContext, bindTcp, bindTls, connectTcp, connectTls, debug, didFail, didStop, error, fail, info, ipSettings, schedule, setAuthenticatorContext, stage, trace, warn, willStart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.io.http.HttpInterface
bindHttp, bindHttp, bindHttp, bindHttp, bindHttps, bindHttps, bindHttps, bindHttps, connectHttp, connectHttp, connectHttp, connectHttp, connectHttps, connectHttps, connectHttps, connectHttps
-
Methods inherited from interface swim.io.IpInterface
bindTcp, bindTcp, bindTcp, bindTcp, bindTls, bindTls, bindTls, bindTls, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, ipSettings
-
-
-
-
Field Detail
-
audiences
protected final FingerTrieSeq<String> audiences
-
publicKeyUri
protected final Uri publicKeyUri
-
httpSettings
protected final HttpSettings httpSettings
-
emails
protected HashTrieSet<String> emails
-
-
Constructor Detail
-
GoogleIdAuthenticator
public GoogleIdAuthenticator(FingerTrieSeq<String> audiences, HashTrieSet<String> emails, Uri publicKeyUri, HttpSettings httpSettings)
-
GoogleIdAuthenticator
public GoogleIdAuthenticator(GoogleIdAuthenticatorDef authenticatorDef)
-
-
Method Detail
-
audiences
public final FingerTrieSeq<String> audiences()
-
emails
public final HashTrieSet<String> emails()
-
addEmail
public void addEmail(String email)
-
removeEmail
public void removeEmail(String email)
-
publicKeyUri
public final Uri publicKeyUri()
-
httpSettings
public final HttpSettings httpSettings()
- Specified by:
httpSettings
in interfaceHttpInterface
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfaceAuthenticator
- Specified by:
authenticate
in classAbstractAuthenticator
-
publicKeyDefs
public final FingerTrieSeq<PublicKeyDef> publicKeyDefs()
-
setPublicKeyDefs
public void setPublicKeyDefs(FingerTrieSeq<PublicKeyDef> publicKeyDefs)
-
refreshPublicKeys
public void refreshPublicKeys()
-
didStart
public void didStart()
- Specified by:
didStart
in interfaceAuthenticator
- Overrides:
didStart
in classAbstractAuthenticator
-
willStop
public void willStop()
- Specified by:
willStop
in interfaceAuthenticator
- Overrides:
willStop
in classAbstractAuthenticator
-
-