public abstract class BaseAuthenticator<C> extends Object implements com.google.common.base.Function<Credentials,AuthInfo>
Modifier and Type | Field and Description |
---|---|
protected String |
defaultTenantId |
protected String |
defaultTenantName |
protected Logger |
logger |
protected boolean |
requiresTenant |
protected String |
scope |
Constructor and Description |
---|
BaseAuthenticator() |
Modifier and Type | Method and Description |
---|---|
AuthInfo |
apply(Credentials input) |
abstract AuthInfo |
authenticate(TenantOrDomainAndCredentials<C> credentials) |
void |
checkPropertiesAreCompatible() |
abstract C |
createCredentials(String identity,
String credential) |
protected Logger logger
@Inject(optional=true) protected String defaultTenantName
@Inject(optional=true) protected String defaultTenantId
@Inject(optional=true) protected boolean requiresTenant
@Inject(optional=true) protected String scope
@PostConstruct public void checkPropertiesAreCompatible()
public AuthInfo apply(Credentials input)
apply
in interface com.google.common.base.Function<Credentials,AuthInfo>
public abstract AuthInfo authenticate(TenantOrDomainAndCredentials<C> credentials)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.