public abstract class BaseAuthenticator<C> extends Object implements com.google.common.base.Function<Credentials,Access>
Modifier and Type | Field and Description |
---|---|
protected String |
defaultTenantId |
protected String |
defaultTenantName |
protected Logger |
logger |
protected boolean |
requiresTenant |
Constructor and Description |
---|
BaseAuthenticator() |
Modifier and Type | Method and Description |
---|---|
Access |
apply(Credentials input) |
protected abstract Access |
authenticateWithTenantId(com.google.common.base.Optional<String> tenantId,
C apiAccessKeyCredentials) |
protected abstract Access |
authenticateWithTenantName(com.google.common.base.Optional<String> tenantId,
C apiAccessKeyCredentials) |
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
@PostConstruct public void checkPropertiesAreCompatible()
public Access apply(Credentials input)
apply
in interface com.google.common.base.Function<Credentials,Access>
protected abstract Access authenticateWithTenantId(com.google.common.base.Optional<String> tenantId, C apiAccessKeyCredentials)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.