Class FileHostKeyCertificateProvider
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.keyprovider.FileHostKeyCertificateProvider
-
- All Implemented Interfaces:
HostKeyCertificateProvider
public class FileHostKeyCertificateProvider extends AbstractLoggingBean implements HostKeyCertificateProvider
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<? extends java.nio.file.Path>
files
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description FileHostKeyCertificateProvider(java.nio.file.Path path)
FileHostKeyCertificateProvider(java.nio.file.Path... files)
FileHostKeyCertificateProvider(java.util.Collection<? extends java.nio.file.Path> files)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends java.nio.file.Path>
getPaths()
java.lang.Iterable<OpenSshCertificate>
loadCertificates(SessionContext session)
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.keyprovider.HostKeyCertificateProvider
loadCertificate
-
-
-
-
Constructor Detail
-
FileHostKeyCertificateProvider
public FileHostKeyCertificateProvider(java.nio.file.Path path)
-
FileHostKeyCertificateProvider
public FileHostKeyCertificateProvider(java.nio.file.Path... files)
-
FileHostKeyCertificateProvider
public FileHostKeyCertificateProvider(java.util.Collection<? extends java.nio.file.Path> files)
-
-
Method Detail
-
getPaths
public java.util.Collection<? extends java.nio.file.Path> getPaths()
-
loadCertificates
public java.lang.Iterable<OpenSshCertificate> loadCertificates(SessionContext session) throws java.io.IOException, java.security.GeneralSecurityException
- Specified by:
loadCertificates
in interfaceHostKeyCertificateProvider
- Throws:
java.io.IOException
java.security.GeneralSecurityException
-
-