Package org.apache.sshd.openpgp
Class PGPAuthorizedEntriesTracker
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.openpgp.PGPAuthorizedEntriesTracker
- All Implemented Interfaces:
FilePasswordProviderHolder,FilePasswordProviderManager,PublicKeyEntryResolver,PGPAuthorizedKeyEntriesLoader,PGPPublicKeyExtractor
public class PGPAuthorizedEntriesTracker
extends AbstractLoggingBean
implements PGPAuthorizedKeyEntriesLoader, FilePasswordProviderManager
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.config.keys.PublicKeyEntryResolver
FAILING, IGNORING, UNSUPPORTED -
Constructor Summary
ConstructorsConstructorDescriptionPGPAuthorizedEntriesTracker(Path path, FilePasswordProvider passwordProvider) PGPAuthorizedEntriesTracker(Collection<? extends Path> keys) PGPAuthorizedEntriesTracker(Collection<? extends Path> keys, FilePasswordProvider passwordProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid<K extends PublicKey>
KgeneratePublicKey(String algorithm, Class<K> keyType, KeySpec keySpec) protected KeyFactorygetKeyFactory(String algorithm) loadMatchingKeyFingerprints(SessionContext session, Collection<String> fingerprints) voidsetFilePasswordProvider(FilePasswordProvider filePasswordProvider) 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, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.openpgp.PGPAuthorizedKeyEntriesLoader
loadMatchingAuthorizedEntries, resolve, resolveAuthorizedEntriesMethods inherited from interface org.apache.sshd.openpgp.PGPPublicKeyExtractor
extractDSSPublicKey, extractECDSAPublicKey, extractECPublicKey, extractEdDSAPublicKey, extractPublicKey, extractRSAPublicKey
-
Constructor Details
-
PGPAuthorizedEntriesTracker
public PGPAuthorizedEntriesTracker() -
PGPAuthorizedEntriesTracker
-
PGPAuthorizedEntriesTracker
-
PGPAuthorizedEntriesTracker
-
PGPAuthorizedEntriesTracker
public PGPAuthorizedEntriesTracker(Collection<? extends Path> keys, FilePasswordProvider passwordProvider)
-
-
Method Details
-
getFilePasswordProvider
- Specified by:
getFilePasswordProviderin interfaceFilePasswordProviderHolder
-
setFilePasswordProvider
- Specified by:
setFilePasswordProviderin interfaceFilePasswordProviderManager
-
getWatchedFiles
-
addWatchedFile
-
loadMatchingKeyFingerprints
public List<PublicKey> loadMatchingKeyFingerprints(SessionContext session, Collection<String> fingerprints) throws IOException, GeneralSecurityException, org.bouncycastle.openpgp.PGPException - Specified by:
loadMatchingKeyFingerprintsin interfacePGPAuthorizedKeyEntriesLoader- Throws:
IOExceptionGeneralSecurityExceptionorg.bouncycastle.openpgp.PGPException
-
generatePublicKey
public <K extends PublicKey> K generatePublicKey(String algorithm, Class<K> keyType, KeySpec keySpec) throws GeneralSecurityException - Specified by:
generatePublicKeyin interfacePGPPublicKeyExtractor- Throws:
GeneralSecurityException
-
getKeyFactory
- Throws:
GeneralSecurityException
-