public class UserAuthHostBased extends AbstractUserAuth implements SignatureFactoriesManager
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
log
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Constructor and Description |
---|
UserAuthHostBased(HostKeyIdentityProvider clientHostKeys) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendSignature(ClientSession session,
String service,
String keyType,
PublicKey key,
byte[] keyBytes,
String clientHostname,
String clientUsername,
Signature verifier,
Buffer buffer) |
String |
getClientHostname() |
String |
getClientUsername() |
List<NamedFactory<Signature>> |
getSignatureFactories() |
void |
init(ClientSession session,
String service) |
protected boolean |
processAuthDataRequest(ClientSession session,
String service,
Buffer buffer) |
protected String |
resolveClientHostname() |
protected String |
resolveClientUsername() |
protected boolean |
sendAuthDataRequest(ClientSession session,
String service) |
void |
setClientHostname(String clientHostname) |
void |
setClientUsername(String clientUsername) |
void |
setSignatureFactories(List<NamedFactory<Signature>> factories) |
destroy, getClientSession, getName, getService, getSession, process, toString
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSignatureFactories, getSignatureFactoriesNameList, getSignatureFactoriesNames, resolveSignatureFactories, setSignatureFactoriesNameList, setSignatureFactoriesNames, setSignatureFactoriesNames
findByName, getNameList, getNames, ofName, removeByName
public static final String NAME
public UserAuthHostBased(HostKeyIdentityProvider clientHostKeys)
public void init(ClientSession session, String service) throws Exception
init
in interface UserAuth
init
in class AbstractUserAuth
session
- The ClientSession
service
- The requesting service nameException
- If failed to initialize the mechanismpublic List<NamedFactory<Signature>> getSignatureFactories()
getSignatureFactories
in interface SignatureFactoriesManager
Signature
factoriespublic void setSignatureFactories(List<NamedFactory<Signature>> factories)
setSignatureFactories
in interface SignatureFactoriesManager
public String getClientUsername()
public void setClientUsername(String clientUsername)
public String getClientHostname()
public void setClientHostname(String clientHostname)
protected boolean sendAuthDataRequest(ClientSession session, String service) throws Exception
sendAuthDataRequest
in class AbstractUserAuth
Exception
protected void appendSignature(ClientSession session, String service, String keyType, PublicKey key, byte[] keyBytes, String clientHostname, String clientUsername, Signature verifier, Buffer buffer) throws Exception
Exception
protected boolean processAuthDataRequest(ClientSession session, String service, Buffer buffer) throws Exception
processAuthDataRequest
in class AbstractUserAuth
Exception
protected String resolveClientUsername()
protected String resolveClientHostname()
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.